Class Formatter

Class Documentation

class Formatter

Stringstream Class to use itself as the stream object returned by << operator. (std::stringstream returns an std::ostream). Allows a one-line stringstream to str conversion, e.g. use_str(Formatter() << “foo” << variable);.

Public Functions

inline Formatter()
inline ~Formatter()
template<typename Type>
inline Formatter &operator<<(const Type &value)
inline Formatter &operator<<(std::ostream &(*__pf)(std::ostream&))
inline operator std::string() const

Friends

inline friend std::ostream &operator<<(std::ostream &os, const Formatter &obj)