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 for the latest Boost documentation.
PrevUpHomeNext

Struct nop

boost::log::nop — The function object that does nothing.

Synopsis

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


struct nop {
  // types
  typedef void result_type;

  // public member functions
  void operator()() const noexcept;
  template<typename... ArgsT> void operator()(ArgsT const &) const noexcept;
};

Description

nop public member functions

  1. void operator()() const noexcept;
  2. template<typename... ArgsT> void operator()(ArgsT const & ...) const noexcept;

PrevUpHomeNext