![]() |
boost::log::dynamic_type_dispatcher — A dynamic type dispatcher.
// In header: <boost/log/utility/type_dispatch/dynamic_type_dispatcher.hpp> class dynamic_type_dispatcher : public type_dispatcher { public: // public member functions template<typename T, typename FunT> void register_type(FunT const &); dispatching_map::size_type registered_types_count() const; };
The type dispatcher can be used to pass objects of arbitrary types from one component to another. With regard to the library, the type dispatcher can be used to extract attribute values.
The dynamic type dispatcher can be initialized in run time and, therefore, can support different types, depending on runtime conditions. Each supported type is associated with a functional object that will be called when an object of the type is dispatched.