Boost C++ Libraries

PrevUpHomeNext

Struct template type_visitor

boost::log::type_visitor — An interface to the concrete type visitor.

Synopsis

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

template<typename T> 
struct type_visitor {
  // types
  typedef T supported_type;  // The type, which the visitor is able to consume. 

  // construct/copy/destruct
  ~type_visitor();

  // public member functions
  void visit(T const &);
};

Description

This interface is used by type dispatchers to consume the dispatched value.

type_visitor public construct/copy/destruct

  1. ~type_visitor();

    Virtual destructor

type_visitor public member functions

  1. void visit(T const & value);

    The method invokes the visitor-specific logic with the given value

    Parameters:
    value

    The dispatched value


PrevUpHomeNext