...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::expressions::wrapped_formatter_terminal
// In header: <boost/log/expressions/formatters/wrap_formatter.hpp> template<typename FunT, typename CharT> class wrapped_formatter_terminal { public: // types typedef CharT char_type; // Character type. typedef std::basic_string< char_type > string_type; // String type. typedef basic_formatting_ostream< char_type > stream_type; // Formatting stream type. typedef FunT function_type; // Wrapped function type. typedef string_type result_type; // Formatter result type. // construct/copy/destruct explicit wrapped_formatter_terminal(function_type const &); wrapped_formatter_terminal(wrapped_formatter_terminal const &); // public member functions function_type const & get_function() const; template<typename ContextT> result_type operator()(ContextT const &); template<typename ContextT> result_type operator()(ContextT const &) const; };
Formatter function wrapper terminal.
wrapped_formatter_terminal
public
construct/copy/destructexplicit wrapped_formatter_terminal(function_type const & fun);Initializing construction.
wrapped_formatter_terminal(wrapped_formatter_terminal const & that);Copy constructor.