STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
pointer_to_binary_function< _Arg1, _Arg2, _Result, _Fn > Class Template Reference
Inheritance diagram for pointer_to_binary_function< _Arg1, _Arg2, _Result, _Fn >:
binary_function< _Arg1, _Arg2, _Result >

Public Member Functions

 pointer_to_binary_function (_Fn _Left)
 
_Result operator() (_Arg1 _Left, _Arg2 _Right) const
 

Protected Attributes

_Fn _Pfun
 

Additional Inherited Members

- Public Types inherited from binary_function< _Arg1, _Arg2, _Result >
typedef _Arg1 first_argument_type
 
typedef _Arg2 second_argument_type
 
typedef _Result result_type
 

Constructor & Destructor Documentation

template<class _Arg1 , class _Arg2 , class _Result , class _Fn = _Result (*)(_Arg1, _Arg2)>
pointer_to_binary_function< _Arg1, _Arg2, _Result, _Fn >::pointer_to_binary_function ( _Fn  _Left)
inlineexplicit
557  : _Pfun(_Left)
558  { // construct from pointer
559  }
_Fn _Pfun
Definition: xfunctional:567

Member Function Documentation

template<class _Arg1 , class _Arg2 , class _Result , class _Fn = _Result (*)(_Arg1, _Arg2)>
_Result pointer_to_binary_function< _Arg1, _Arg2, _Result, _Fn >::operator() ( _Arg1  _Left,
_Arg2  _Right 
) const
inline
562  { // call function with operands
563  return (_Pfun(_Left, _Right));
564  }
_Fn _Pfun
Definition: xfunctional:567
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

template<class _Arg1 , class _Arg2 , class _Result , class _Fn = _Result (*)(_Arg1, _Arg2)>
_Fn pointer_to_binary_function< _Arg1, _Arg2, _Result, _Fn >::_Pfun
protected

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