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

Public Types

typedef unary_function< typename _Fn2::first_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::first_argument_type, _Fn2::result_type >
typedef _Fn2::first_argument_type argument_type
 
typedef _Fn2::result_type result_type
 

Public Member Functions

 binder2nd (const _Fn2 &_Func, const typename _Fn2::second_argument_type &_Right)
 
result_type operator() (const argument_type &_Left) const
 
result_type operator() (argument_type &_Left) const
 

Protected Attributes

_Fn2 op
 
_Fn2::second_argument_type value
 

Member Typedef Documentation

template<class _Fn2 >
typedef unary_function<typename _Fn2::first_argument_type, typename _Fn2::result_type> binder2nd< _Fn2 >::_Base
template<class _Fn2 >
typedef _Base::argument_type binder2nd< _Fn2 >::argument_type
template<class _Fn2 >
typedef _Base::result_type binder2nd< _Fn2 >::result_type

Constructor & Destructor Documentation

template<class _Fn2 >
binder2nd< _Fn2 >::binder2nd ( const _Fn2 &  _Func,
const typename _Fn2::second_argument_type &  _Right 
)
inline
497  : op(_Func), value(_Right)
498  { // construct from functor and right operand
499  }
_Fn2 op
Definition: xfunctional:512
_Fn2::second_argument_type value
Definition: xfunctional:513
const _Ty & _Right
Definition: algorithm:4087

Member Function Documentation

template<class _Fn2 >
result_type binder2nd< _Fn2 >::operator() ( const argument_type _Left) const
inline
502  { // apply functor to operands
503  return (op(_Left, value));
504  }
_Fn2 op
Definition: xfunctional:512
_Fn2::second_argument_type value
Definition: xfunctional:513
template<class _Fn2 >
result_type binder2nd< _Fn2 >::operator() ( argument_type _Left) const
inline
507  { // apply functor to operands
508  return (op(_Left, value));
509  }
_Fn2 op
Definition: xfunctional:512
_Fn2::second_argument_type value
Definition: xfunctional:513

Member Data Documentation

template<class _Fn2 >
_Fn2 binder2nd< _Fn2 >::op
protected
template<class _Fn2 >
_Fn2::second_argument_type binder2nd< _Fn2 >::value
protected

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