...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Retrieves the result of the formatting operation.
system::result< OutputString > get();
After running the relevant formatting operations (using append_raw
, append_value
or format_sql_to
), call this function
to retrieve the overall result of the operation.
If error_state
is a non-empty error
code, returns it as an error. Otherwise, returns the output string, move-constructing
it into the system::result
object.
This function is move-only: once called, *this
is left in a valid but unspecified
state.
Basic guarantee: exceptions thrown by move-constructing OutputString
are propagated.