MCPcopy Create free account
hub / github.com/fmtlib/fmt / try_resize

Function try_resize

include/fmt/base.h:1803–1806  ·  view source on GitHub ↗

Tries resizing the buffer to contain `count` elements. If T is a POD type the new elements may not be initialized.

Source from the content-addressed store, hash-verified

1801 // Tries resizing the buffer to contain `count` elements. If T is a POD type
1802 // the new elements may not be initialized.
1803 FMT_CONSTEXPR void try_resize(size_t count) {
1804 try_reserve(count);
1805 size_ = min_of(count, capacity_);
1806 }
1807
1808 // Tries increasing the buffer capacity to `new_capacity`. It can increase the
1809 // capacity by a smaller amount than requested but guarantees there is space

Callers

nothing calls this directly

Calls 2

try_reserveFunction · 0.85
min_ofFunction · 0.85

Tested by

no test coverage detected