template <typename T, size_t SIZE = inline_buffer_size, typename Allocator = detail::allocator<T>>

class basic_memory_buffer

Defined at line 790 of file ../../third_party/fmtlib/src/include/fmt/format.h

A dynamically growing memory buffer for trivially copyable/constructible

types with the first `SIZE` elements stored in the object itself. Most

commonly used via the `memory_buffer` alias for `char`.

**Example**:

auto out = fmt::memory_buffer();

fmt::format_to(std::back_inserter(out), "The answer is {}.", 42);

This will append "The answer is 42." to `out`. The buffer content can be

converted to `std::string` with `to_string(out)`.

Public Methods

void basic_memory_buffer<T, SIZE, Allocator> (const Allocator & alloc)

Defined at line 831 of file ../../third_party/fmtlib/src/include/fmt/format.h

void ~basic_memory_buffer<T, SIZE, Allocator> ()

Defined at line 837 of file ../../third_party/fmtlib/src/include/fmt/format.h

void basic_memory_buffer<T, SIZE, Allocator> (basic_memory_buffer<T, SIZE, Allocator> && other)

Constructs a `basic_memory_buffer` object moving the content of the other

object to it.

Defined at line 861 of file ../../third_party/fmtlib/src/include/fmt/format.h

basic_memory_buffer<T, SIZE, Allocator> & operator= (basic_memory_buffer<T, SIZE, Allocator> && other)

Moves the content of the other `basic_memory_buffer` object to this one.

Defined at line 867 of file ../../third_party/fmtlib/src/include/fmt/format.h

Allocator get_allocator ()

Returns a copy of the allocator associated with this buffer.

Defined at line 875 of file ../../third_party/fmtlib/src/include/fmt/format.h

void resize (size_t count)

Resizes the buffer to contain `count` elements. If T is a POD type new

elements may not be initialized.

Defined at line 879 of file ../../third_party/fmtlib/src/include/fmt/format.h

void reserve (size_t new_capacity)

Increases the buffer capacity to `new_capacity`.

Defined at line 882 of file ../../third_party/fmtlib/src/include/fmt/format.h

template <typename ContiguousRange>
void append (const ContiguousRange & range)

Defined at line 886 of file ../../third_party/fmtlib/src/include/fmt/format.h