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(const CharT * 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. Must point to a zero-terminated string, must not be NULL.

Returns:

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


PrevUpHomeNext