NGL
6.5
The NCCA Graphics Library
|
#include <string.h>
Private Attributes | |
internal::StringBuffer< Char > | buffer_ |
Additional Inherited Members | |
Protected Member Functions inherited from fmt::BasicWriter< Char > | |
BasicWriter (Buffer< Char > &b) | |
This class template provides operations for formatting and writing data into a character stream. The output is stored in std::string
that grows dynamically.
You can use one of the following typedefs for common character types and the standard allocator:
+------------—+-------------------------—+ | Type | Definition | +===============+============================+ | StringWriter | BasicStringWriter<char> | +------------—+-------------------------—+ | WStringWriter | BasicStringWriter<wchar_t> | +------------—+-------------------------—+
Example**::
StringWriter out; out << "The answer is " << 42 << "\n";
This will write the following output to the out
object:
.. code-block:: none
The answer is 42
The output can be moved to an std::string
with out.move_to()
.
|
inline |
Constructs a :class:fmt::BasicStringWriter
object.
|
inline |
Moves the buffer content to str clearing the buffer.
Definition at line 92 of file string.h.
References fmt::internal::StringBuffer< Char >::move_to().
|
private |