Boost C++ Libraries

PrevUpHomeNext

Function template make_functor_attr

boost::log::attributes::make_functor_attr

Synopsis

// In header: <boost/log/attributes/functor.hpp>


template<typename T> shared_ptr< attribute > make_functor_attr(T const & fun);

Description

The function constructs functor attribute instance with the provided functional object.

Parameters:
fun

Nullary functional object that returns an actual stored value for an attribute value.

Returns:

Pointer to the attribute instance


PrevUpHomeNext