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 template binder2nd

boost::log::binder2nd — Second argument binder.

Synopsis

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

template<typename FunT, typename SecondArgT> 
struct binder2nd : private FunT {
  // types
  typedef FunT::result_type result_type;

  // construct/copy/destruct
  binder2nd(FunT const &, unspecified);

  // public member functions
  template<typename T> result_type operator()(T const &) const;
  template<typename T0, typename T1> 
    result_type operator()(T0 const &, T1 const &) const;
};

Description

binder2nd public construct/copy/destruct

  1. binder2nd(FunT const & fun, unspecified arg);

binder2nd public member functions

  1. template<typename T> result_type operator()(T const & arg) const;
  2. template<typename T0, typename T1> 
      result_type operator()(T0 const & arg0, T1 const & arg1) const;

PrevUpHomeNext