...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::expressions::has_attribute<void>
// In header: <boost/log/expressions/predicates/has_attr.hpp> class has_attribute<void> { public: // types typedef bool result_type; // Function result_type. typedef void value_type; // Expected attribute value type. // construct/copy/destruct explicit has_attribute(attribute_name const &); // public member functions result_type operator()(attribute_value_set const &) const; result_type operator()(boost::log::record_view const &) const; };
An attribute value presence checker. This specialization does not check the type of the attribute value.
has_attribute
public member functionsresult_type operator()(attribute_value_set const & attrs) const;
Checking operator
Parameters: |
|
||
Returns: |
|
result_type operator()(boost::log::record_view const & rec) const;
Checking operator
Parameters: |
|
||
Returns: |
|