Ark Server API (ASA) - Wiki
|
#include <string.h>
Private Attributes | |
internal::StringBuffer< Char, Allocator > | buffer_ |
Additional Inherited Members | |
Protected Member Functions inherited from fmt::BasicWriter< Char > | |
BasicWriter (Buffer< Char > &b) | |
\rst This class template provides operations for formatting and writing data into a character stream. The output is stored in a std::basic_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 a std::basic_string
with out.move_to()
. \endrst
|
inlineexplicit |
\rst Constructs a :class:fmt::BasicStringWriter
object. \endrst
|
inline |
|
private |