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


Class template format_terminal

boost::log::expressions::format_terminal — Template expressions terminal node with Boost.Format-like formatter.


// In header: <boost/log/expressions/formatters/format.hpp>

template<typename CharT> 
class format_terminal {
  // types
  typedef CharT                          char_type;    // Character type. 
  typedef unspecified                    format_type;  // Boost.Format formatter type. 
  typedef std::basic_string< char_type > string_type;  // String type. 
  typedef format_type::pump              result_type;  // Terminal result type. 

  // construct/copy/destruct
  explicit format_terminal(const char_type *);
  format_terminal() = delete;

  // public member functions
  template<typename ContextT> result_type operator()(ContextT const &) const;


format_terminal public construct/copy/destruct

  1. explicit format_terminal(const char_type * format);
    Initializing constructor.
  2. format_terminal() = delete;

format_terminal public member functions

  1. template<typename ContextT> result_type operator()(ContextT const & ctx) const;
    Invokation operator.