Boost C++ Libraries 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.

Class template invoke_manipulator



// In header: <boost/log/utility/manipulators/invoke.hpp>

template<typename FunctionT> 
class invoke_manipulator {
  // construct/copy/destruct
  explicit invoke_manipulator(FunctionT const &);
  explicit invoke_manipulator(FunctionT &&);

  // public member functions
  template<typename StreamT> void output(StreamT &) const;


Stream manipulator for invoking a user-defined function as part of stream output.

invoke_manipulator public construct/copy/destruct

  1. explicit invoke_manipulator(FunctionT const & func);
    Initializing constructor.
  2. explicit invoke_manipulator(FunctionT && func);
    Initializing constructor.

invoke_manipulator public member functions

  1. template<typename StreamT> void output(StreamT & stream) const;
    The method invokes the saved function with the output stream.