Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

Function template wrap_formatter



// In header: <boost/log/expressions/formatters/wrap_formatter.hpp>

template<typename FunT> unspecified 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.