![]() |
boost::log::filters::basic_filter — A base class for filters.
// In header: <boost/log/filters/basic_filters.hpp> template<typename CharT, typename DerivedT> struct basic_filter : public filter_base { // types typedef CharT char_type; // Character type. typedef std::basic_string< char_type > string_type; // String type. typedef basic_attribute_values_view< char_type > values_view_type; // Attribute values view type. typedef bool result_type; typedef values_view_type argument_type; typedef argument_type arg1_type; enum _ { arity = 1 }; };
The basic_filter
class defines standard types that most filters use and have to provide in order to be valid functors. This class also enables support for the is_filter
type trait, which allows the filter to take part in lambda expressions.