Boost C++ Libraries

PrevUpHomeNext

Class template callback

boost::log::type_dispatcher::callback

Synopsis

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


template<typename T> 
class callback {
public:

  // public member functions
  void operator()(T const &) const;
  bool operator!() const;
};

Description

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

callback public member functions

  1. void operator()(T const & value) const;

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

    Parameters:

    value

    The dispatched value

  2. bool operator!() const;

    The operator checks if the visitor is attached to a receiver

    The operator checks if the visitor is not attached to a receiver


PrevUpHomeNext