...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::wrap_formatter
// In header: <boost/log/expressions/formatters/wrap_formatter.hpp> template<typename CharT, typename FunT> wrapped_formatter_actor< FunT, CharT > wrap_formatter(FunT const & fun);
The function wraps a function object in order it to be able to participate in formatting expressions. The wrapped function object must be compatible with the following signature:
void (record_view const&, basic_formatting_ostream< CharT >&)
where CharT
is the character type of the formatting expression.