STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Attributes | List of all members
binder1st< _Fn2 > Class Template Reference
Inheritance diagram for binder1st< _Fn2 >:
unary_function< _Fn2::second_argument_type, _Fn2::result_type >

Public Types

typedef unary_function< typename _Fn2::second_argument_type, typename _Fn2::result_type > _Base
 
typedef _Base::argument_type argument_type
 
typedef _Base::result_type result_type
 
- Public Types inherited from unary_function< _Fn2::second_argument_type, _Fn2::result_type >
typedef _Fn2::second_argument_type argument_type
 
typedef _Fn2::result_type result_type
 

Public Member Functions

 binder1st (const _Fn2 &_Func, const typename _Fn2::first_argument_type &_Left)
 
result_type operator() (const argument_type &_Right) const
 
result_type operator() (argument_type &_Right) const
 

Protected Attributes

_Fn2 op
 
_Fn2::first_argument_type value
 

Member Typedef Documentation

template<class _Fn2 >
typedef unary_function<typename _Fn2::second_argument_type, typename _Fn2::result_type> binder1st< _Fn2 >::_Base
template<class _Fn2 >
typedef _Base::argument_type binder1st< _Fn2 >::argument_type
template<class _Fn2 >
typedef _Base::result_type binder1st< _Fn2 >::result_type

Constructor & Destructor Documentation

template<class _Fn2 >
binder1st< _Fn2 >::binder1st ( const _Fn2 &  _Func,
const typename _Fn2::first_argument_type &  _Left 
)
inline
455  : op(_Func), value(_Left)
456  { // construct from functor and left operand
457  }
_Fn2 op
Definition: xfunctional:470
_Fn2::first_argument_type value
Definition: xfunctional:471

Member Function Documentation

template<class _Fn2 >
result_type binder1st< _Fn2 >::operator() ( const argument_type _Right) const
inline
460  { // apply functor to operands
461  return (op(value, _Right));
462  }
_Fn2 op
Definition: xfunctional:470
_Fn2::first_argument_type value
Definition: xfunctional:471
const _Ty & _Right
Definition: algorithm:4087
template<class _Fn2 >
result_type binder1st< _Fn2 >::operator() ( argument_type _Right) const
inline
465  { // apply functor to operands
466  return (op(value, _Right));
467  }
_Fn2 op
Definition: xfunctional:470
_Fn2::first_argument_type value
Definition: xfunctional:471
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

template<class _Fn2 >
_Fn2 binder1st< _Fn2 >::op
protected
template<class _Fn2 >
_Fn2::first_argument_type binder1st< _Fn2 >::value
protected

The documentation for this class was generated from the following file: