26 m_target(target_str ? target_str : (&m_own_target_str)),
27 m_target_inserter(*m_target),
28 m_target_appender_ostream(m_target_inserter)
void str_clear()
Performs std::string::clear() on the object returned by str().
String_ostream(std::string *target_str=0)
Wraps either the given std::string or a newly created empty string if a null pointer is passed.
std::ostream & os()
Access to stream that will write to owned string.
const std::string & str() const
Read-only access to the string being wrapped.
String_appender_ostream m_target_appender_ostream
Appender ostream into m_target by way of m_target_inserter. Write/flush here to write to m_target.
std::string * m_target
Pointer to the target string. Emptied at construction and in str_clear() only.
Flow module containing miscellaneous general-use facilities that don't fit into any other Flow module...