STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Functions | Variables
xfunctional File Reference
#include <cstdlib>
#include <xstring>
#include <xstddef>

Classes

struct  divides< _Ty >
 
struct  modulus< _Ty >
 
struct  negate< _Ty >
 
struct  not_equal_to< _Ty >
 
struct  greater< _Ty >
 
struct  greater_equal< _Ty >
 
struct  less_equal< _Ty >
 
struct  logical_and< _Ty >
 
struct  logical_or< _Ty >
 
struct  logical_not< _Ty >
 
struct  bit_and< _Ty >
 
struct  bit_or< _Ty >
 
struct  bit_xor< _Ty >
 
struct  bit_not< _Ty >
 
struct  divides< void >
 
struct  modulus< void >
 
struct  negate< void >
 
struct  not_equal_to< void >
 
struct  greater< void >
 
struct  greater_equal< void >
 
struct  less_equal< void >
 
struct  logical_and< void >
 
struct  logical_or< void >
 
struct  logical_not< void >
 
struct  bit_and< void >
 
struct  bit_or< void >
 
struct  bit_xor< void >
 
struct  bit_not< void >
 
class  unary_negate< _Fn1 >
 
class  binary_negate< _Fn2 >
 
class  binder1st< _Fn2 >
 
class  binder2nd< _Fn2 >
 
class  pointer_to_unary_function< _Arg, _Result, _Fn >
 
class  pointer_to_binary_function< _Arg1, _Arg2, _Result, _Fn >
 
class  mem_fun_t< _Result, _Ty >
 
class  mem_fun1_t< _Result, _Ty, _Arg >
 
class  const_mem_fun_t< _Result, _Ty >
 
class  const_mem_fun1_t< _Result, _Ty, _Arg >
 
class  mem_fun_ref_t< _Result, _Ty >
 
class  mem_fun1_ref_t< _Result, _Ty, _Arg >
 
class  const_mem_fun_ref_t< _Result, _Ty >
 
class  const_mem_fun1_ref_t< _Result, _Ty, _Arg >
 

Macros

#define _XFUNCTIONAL_
 
#define _XSTD2
 

Functions

template<class _Fn1 >
unary_negate< _Fn1 > not1 (const _Fn1 &_Func)
 
template<class _Fn2 >
binary_negate< _Fn2 > not2 (const _Fn2 &_Func)
 
template<class _Fn2 , class _Ty >
binder1st< _Fn2 > bind1st (const _Fn2 &_Func, const _Ty &_Left)
 
template<class _Fn2 , class _Ty >
binder2nd< _Fn2 > bind2nd (const _Fn2 &_Func, const _Ty &_Right)
 
template<class _Arg1 , class _Arg2 , class _Result >
pointer_to_binary_function< _Arg1, _Arg2, _Result, _Result(__cdecl *)(_Arg1, _Arg2)> ptr_fun (_Result(__cdecl *_Left)(_Arg1, _Arg2))
 
template<class _Result , class _Ty >
mem_fun_t< _Result, _Ty > mem_fun (_Result(_Ty::*_Pm)())
 
template<class _Result , class _Ty , class _Arg >
mem_fun1_t< _Result, _Ty, _Arg > mem_fun (_Result(_Ty::*_Pm)(_Arg))
 
template<class _Result , class _Ty >
const_mem_fun_t< _Result, _Ty > mem_fun (_Result(_Ty::*_Pm)() const)
 
template<class _Result , class _Ty , class _Arg >
const_mem_fun1_t< _Result, _Ty, _Arg > mem_fun (_Result(_Ty::*_Pm)(_Arg) const)
 
template<class _Result , class _Ty , class _Arg >
mem_fun1_t< _Result, _Ty, _Arg > mem_fun1 (_Result(_Ty::*_Pm)(_Arg))
 
template<class _Result , class _Ty >
mem_fun_ref_t< _Result, _Ty > mem_fun_ref (_Result(_Ty::*_Pm)())
 
template<class _Result , class _Ty , class _Arg >
mem_fun1_ref_t< _Result, _Ty, _Arg > mem_fun_ref (_Result(_Ty::*_Pm)(_Arg))
 
template<class _Result , class _Ty >
const_mem_fun_ref_t< _Result, _Ty > mem_fun_ref (_Result(_Ty::*_Pm)() const)
 
template<class _Result , class _Ty , class _Arg >
const_mem_fun1_ref_t< _Result, _Ty, _Arg > mem_fun_ref (_Result(_Ty::*_Pm)(_Arg) const)
 
template<class _Result , class _Ty , class _Arg >
mem_fun1_ref_t< _Result, _Ty, _Arg > mem_fun1_ref (_Result(_Ty::*_Pm)(_Arg))
 

Variables

template<class _Arg , class _Result >
pointer_to_unary_function< _Arg, _Result, _Result(__cdecl *)(_Arg)> ptr_fun (_Result(__cdecl *_Left)(_Arg))
 

Macro Definition Documentation

#define _XFUNCTIONAL_
#define _XSTD2

Function Documentation

template<class _Fn2 , class _Ty >
binder1st<_Fn2> bind1st ( const _Fn2 &  _Func,
const _Ty &  _Left 
)
inline
478  { // return a binder1st functor adapter
479  typename _Fn2::first_argument_type _Val(_Left);
480  return (_STD binder1st<_Fn2>(_Func, _Val));
481  }
Definition: xfunctional:443
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<class _Fn2 , class _Ty >
binder2nd<_Fn2> bind2nd ( const _Fn2 &  _Func,
const _Ty &  _Right 
)
inline
520  { // return a binder2nd functor adapter
521  typename _Fn2::second_argument_type _Val(_Right);
522  return (_STD binder2nd<_Fn2>(_Func, _Val));
523  }
Definition: xfunctional:485
_FwdIt const _Ty _Val
Definition: algorithm:1938
const _Ty & _Right
Definition: algorithm:4087
template<class _Result , class _Ty >
mem_fun_t<_Result, _Ty> mem_fun ( _Result(_Ty::*)()  _Pm)
inline
757  { // return a mem_fun_t functor adapter
758  return (mem_fun_t<_Result, _Ty>(_Pm));
759  }
Definition: xfunctional:670
template<class _Result , class _Ty , class _Arg >
mem_fun1_t<_Result, _Ty, _Arg> mem_fun ( _Result(_Ty::*)(_Arg)  _Pm)
inline
765  { // return a mem_fun1_t functor adapter
766  return (mem_fun1_t<_Result, _Ty, _Arg>(_Pm));
767  }
Definition: xfunctional:692
template<class _Result , class _Ty >
const_mem_fun_t<_Result, _Ty> mem_fun ( _Result(_Ty::*)() const  _Pm)
inline
773  { // return a const_mem_fun_t functor adapter
774  return (const_mem_fun_t<_Result, _Ty>(_Pm));
775  }
Definition: xfunctional:713
template<class _Result , class _Ty , class _Arg >
const_mem_fun1_t<_Result, _Ty, _Arg> mem_fun ( _Result(_Ty::*)(_Arg) const  _Pm)
inline
782  { // return a const_mem_fun1_t functor adapter
784  }
Definition: xfunctional:735
template<class _Result , class _Ty , class _Arg >
mem_fun1_t<_Result, _Ty, _Arg> mem_fun1 ( _Result(_Ty::*)(_Arg)  _Pm)
inline
791  { // return a mem_fun1_t functor adapter
792  return (mem_fun1_t<_Result, _Ty, _Arg>(_Pm));
793  }
Definition: xfunctional:692
template<class _Result , class _Ty , class _Arg >
mem_fun1_ref_t<_Result, _Ty, _Arg> mem_fun1_ref ( _Result(_Ty::*)(_Arg)  _Pm)
inline
920  { // return a mem_fun1_ref_t functor adapter
922  }
Definition: xfunctional:820
template<class _Result , class _Ty >
mem_fun_ref_t<_Result, _Ty> mem_fun_ref ( _Result(_Ty::*)()  _Pm)
inline
885  { // return a mem_fun_ref_t functor adapter
886  return (mem_fun_ref_t<_Result, _Ty>(_Pm));
887  }
Definition: xfunctional:798
template<class _Result , class _Ty , class _Arg >
mem_fun1_ref_t<_Result, _Ty, _Arg> mem_fun_ref ( _Result(_Ty::*)(_Arg)  _Pm)
inline
894  { // return a mem_fun1_ref_t functor adapter
896  }
Definition: xfunctional:820
template<class _Result , class _Ty >
const_mem_fun_ref_t<_Result, _Ty> mem_fun_ref ( _Result(_Ty::*)() const  _Pm)
inline
902  { // return a const_mem_fun_ref_t functor adapter
903  return (const_mem_fun_ref_t<_Result, _Ty>(_Pm));
904  }
Definition: xfunctional:841
template<class _Result , class _Ty , class _Arg >
const_mem_fun1_ref_t<_Result, _Ty, _Arg> mem_fun_ref ( _Result(_Ty::*)(_Arg) const  _Pm)
inline
911  { // return a const_mem_fun1_ref_t functor adapter
913  }
Definition: xfunctional:863
template<class _Fn1 >
unary_negate<_Fn1> not1 ( const _Fn1 &  _Func)
inline
408  { // return a unary_negate functor adapter
409  return (_STD unary_negate<_Fn1>(_Func));
410  }
Definition: xfunctional:387
template<class _Fn2 >
binary_negate<_Fn2> not2 ( const _Fn2 &  _Func)
inline
437  { // return a binary_negate functor adapter
438  return (_STD binary_negate<_Fn2>(_Func));
439  }
Definition: xfunctional:414
template<class _Arg1 , class _Arg2 , class _Result >
pointer_to_binary_function<_Arg1, _Arg2, _Result, _Result (__cdecl *)(_Arg1, _Arg2)> ptr_fun ( _Result(__cdecl *_Left)(_Arg1, _Arg2)  )
inline
623  { // return pointer_to_binary_function functor adapter
624  return (pointer_to_binary_function<_Arg1, _Arg2, _Result,
625  _Result (__cdecl *)(_Arg1, _Arg2)>(_Left));
626  }
Definition: xfunctional:552

Variable Documentation

template<class _Arg , class _Result >
pointer_to_binary_function<_Arg1, _Arg2, _Result, _Result (__cdecl *)(_Arg1, _Arg2)> ptr_fun(_Result(__cdecl *_Left)(_Arg1, _Arg2))
inline
576  { // return pointer_to_unary_function functor adapter
577  return (pointer_to_unary_function<_Arg, _Result,
578  _Result (__cdecl *)(_Arg)>(_Left));
579  }
Definition: xfunctional:529