Boost C++ Libraries

PrevUpHomeNext

Function template attr

boost::log::filters::attr

Synopsis

// In header: <boost/log/filters/attr.hpp>


template<typename AttributeValueTypesT, typename CharT> 
  implementation_defined 
  attr(std::basic_string< CharT > const & name, std::nothrow_t const &);

Description

The function generates an attribute placeholder in filter expressions. The filter will not throw if the attribute value is not found in the record being filtered. Instead, a negative result will be returned.

Parameters:
name

Attribute name.

Returns:

An object that will, upon applying a corresponding operation to it, construct the filter.


PrevUpHomeNext