Boost C++ Libraries

...one 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.
PrevUpHomeNext

Function template wrap_formatter

boost::log::expressions::wrap_formatter

Synopsis

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


template<typename FunT> unspecified wrap_formatter(FunT const & fun);

Description

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.


PrevUpHomeNext