Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct template to_log_fun

boost::log::to_log_fun — The function object that outputs its second operand to the first one.

Synopsis

// In header: <boost/log/utility/functional/bind_to_log.hpp>

template<typename TagT = void> 
struct to_log_fun {
  // types
  typedef void result_type;

  // public member functions
  template<typename StreamT, typename T> 
    void operator()(StreamT &, T const &) const;
};

Description

to_log_fun public member functions

  1. template<typename StreamT, typename T> 
      void operator()(StreamT & strm, T const & val) const;

PrevUpHomeNext