MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / reserve

Function reserve

extlibs/fmt/include/fmt/format.h:351–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350template <typename Container, FMT_ENABLE_IF(is_contiguous<Container>::value)>
351inline checked_ptr<typename Container::value_type> reserve(
352 std::back_insert_iterator<Container>& it, std::size_t n) {
353 Container& c = get_container(it);
354 std::size_t size = c.size();
355 c.resize(size + n);
356 return make_checked(get_data(c) + size, n);
357}
358
359template <typename Iterator>
360inline Iterator& reserve(Iterator& it, std::size_t) {

Callers 10

appendMethod · 0.70
reserveMethod · 0.70
write_decimalMethod · 0.70
write_paddedMethod · 0.70
writeMethod · 0.70
write_pointerMethod · 0.70
on_textMethod · 0.70
resizeMethod · 0.70
push_backMethod · 0.70
vformat_toFunction · 0.70

Calls 4

make_checkedFunction · 0.85
get_dataFunction · 0.85
resizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected