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

Method basic_memory_buffer

include/fmt/format.h:819–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817 using const_reference = const T&;
818
819 FMT_CONSTEXPR explicit basic_memory_buffer(
820 const Allocator& alloc = Allocator())
821 : detail::buffer<T>(grow), alloc_(alloc) {
822 this->set(store_, SIZE);
823 if (detail::is_constant_evaluated()) detail::fill_n(store_, SIZE, T());
824 }
825 FMT_CONSTEXPR20 ~basic_memory_buffer() { deallocate(); }
826
827 private:

Callers

nothing calls this directly

Calls 3

is_constant_evaluatedFunction · 0.85
fill_nFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected