CPP-TOOLBOX
Loading...
Searching...
No Matches
text_utils::StringAccumulator Class Reference

#include <text_utils.hpp>

Public Member Functions

template<typename... Args>
void add (Args &&...args)
 Append values to the accumulator.
 
void clear ()
 Clear the accumulator.
 
std::string str () const
 Get the accumulated string.
 
size_t size () const
 Get the size of the accumulated string.
 

Member Function Documentation

◆ add()

template<typename... Args>
void text_utils::StringAccumulator::add ( Args &&... args)
inline

Append values to the accumulator.

Streams all arguments into the internal string buffer.

Template Parameters
ArgsAny streamable types.
Parameters
argsValues to append.

◆ clear()

void text_utils::StringAccumulator::clear ( )
inline

Clear the accumulator.

◆ size()

size_t text_utils::StringAccumulator::size ( ) const
inline

Get the size of the accumulated string.

◆ str()

std::string text_utils::StringAccumulator::str ( ) const
inline

Get the accumulated string.


The documentation for this class was generated from the following file: