Boost C++ Libraries

PrevUpHomeNext

Struct type_dispatcher

boost::log::type_dispatcher — A type dispatcher interface.

Synopsis

// In header: <boost/log/utility/type_dispatch/type_dispatcher.hpp>


struct type_dispatcher {
  // construct/copy/destruct
  ~type_dispatcher();

  // public member functions
  template<typename T> type_visitor< T > * get_visitor();
};

Description

All type dispatchers support this interface. It is used to acquire the visitor interface for the requested type.

type_dispatcher public construct/copy/destruct

  1. ~type_dispatcher();

    Virtual destructor

type_dispatcher public member functions

  1. template<typename T> type_visitor< T > * get_visitor();

    The method requests a type visitor for a value of type T

    Returns:

    The type-specific visitor or NULL, if the type is not supported


PrevUpHomeNext