HDK
|
#include <format.h>
Public Types | |
using | value_type = T |
using | const_reference = const T & |
Public Member Functions | |
basic_memory_buffer (const Allocator &alloc=Allocator()) | |
~basic_memory_buffer () | |
basic_memory_buffer (basic_memory_buffer &&other) FMT_NOEXCEPT | |
auto | operator= (basic_memory_buffer &&other) FMT_NOEXCEPT-> basic_memory_buffer & |
auto | get_allocator () const -> Allocator |
void | resize (size_t count) |
void | reserve (size_t new_capacity) |
template<typename ContiguousRange > | |
void | append (const ContiguousRange &range) |
Protected Member Functions | |
void | grow (size_t size) final FMT_OVERRIDE |
A dynamically growing memory buffer for trivially copyable/constructible types with the first SIZE
elements stored in the object itself.
You can use the `memory_buffer
type alias for char
instead.
Example**::
fmt::memory_buffer out; format_to(out, "The answer is {}.", 42);
This will append the following output to the out
object:
.. code-block:: none
The answer is 42.
The output can be converted to an std::string
with to_string(out)
.
using basic_memory_buffer< T, SIZE, Allocator >::const_reference = const T& |
using basic_memory_buffer< T, SIZE, Allocator >::value_type = T |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
finalprotected |
|
inline |
Moves the content of the other basic_memory_buffer
object to this one.
|
inline |
|
inline |