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 binder1st<FunT &, FirstArgT>

boost::log::binder1st<FunT &, FirstArgT> — First argument binder.

Synopsis

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

template<typename FunT, typename FirstArgT> 
struct binder1st<FunT &, FirstArgT> {
  // types
  typedef remove_cv< FunT >::type::result_type result_type;

  // construct/copy/destruct
  binder1st(FunT &, unspecified);

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

Description

binder1st public construct/copy/destruct

  1. binder1st(FunT & fun, unspecified arg);

binder1st public member functions

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

PrevUpHomeNext