ReactOS  0.4.12-dev-432-g3463b2d
binder2nd< _Operation > Class Template Reference

#include <_function.h>

Inheritance diagram for binder2nd< _Operation >:
Collaboration diagram for binder2nd< _Operation >:

Public Types

typedef _Base::argument_type argument_type
 
typedef _Base::result_type result_type
 
- Public Types inherited from unary_function< __BINARY_ARG(_Operation, first_argument_type), __BINARY_ARG(_Operation, result_type)>
typedef __BINARY_ARG(_Operation, first_argument_type) argument_type
 
typedef __BINARY_ARG(_Operation, result_typeresult_type
 

Public Member Functions

 binder2nd (const _Operation &__x, _ValueParamType __y)
 
result_type operator() (_ConstArgParamType __x) const
 
result_type operator() (_ArgParamType __x) const
 

Protected Attributes

_Operation op
 
_Operation::second_argument_type value
 

Private Types

typedef unary_function< typename __BINARY_ARG(_Operation, first_argument_type), typename __BINARY_ARG(_Operation, result_type)> _Base
 
typedef __call_traits< argument_type >::param_type _ArgParamType
 
typedef __call_traits< argument_type >::const_param_type _ConstArgParamType
 
typedef __call_traits< typename _Operation::second_argument_type >::const_param_type _ValueParamType
 

Additional Inherited Members

- Protected Member Functions inherited from unary_function< __BINARY_ARG(_Operation, first_argument_type), __BINARY_ARG(_Operation, result_type)>
 ~unary_function ()
 

Detailed Description

template<class _Operation>
class binder2nd< _Operation >

Definition at line 223 of file _function.h.

Member Typedef Documentation

◆ _ArgParamType

template<class _Operation>
typedef __call_traits<argument_type>::param_type binder2nd< _Operation >::_ArgParamType
private

Definition at line 232 of file _function.h.

◆ _Base

template<class _Operation>
typedef unary_function<typename __BINARY_ARG(_Operation, first_argument_type), typename __BINARY_ARG(_Operation, result_type)> binder2nd< _Operation >::_Base
private

Definition at line 227 of file _function.h.

◆ _ConstArgParamType

template<class _Operation>
typedef __call_traits<argument_type>::const_param_type binder2nd< _Operation >::_ConstArgParamType
private

Definition at line 233 of file _function.h.

◆ _ValueParamType

template<class _Operation>
typedef __call_traits<typename _Operation::second_argument_type>::const_param_type binder2nd< _Operation >::_ValueParamType
private

Definition at line 234 of file _function.h.

◆ argument_type

template<class _Operation>
typedef _Base::argument_type binder2nd< _Operation >::argument_type

Definition at line 229 of file _function.h.

◆ result_type

template<class _Operation>
typedef _Base::result_type binder2nd< _Operation >::result_type

Definition at line 230 of file _function.h.

Constructor & Destructor Documentation

◆ binder2nd()

template<class _Operation>
binder2nd< _Operation >::binder2nd ( const _Operation &  __x,
_ValueParamType  __y 
)
inline

Definition at line 240 of file _function.h.

241  : op(__x), value(__y) {}
_Operation op
Definition: _function.h:237
_Operation::second_argument_type value
Definition: _function.h:238

Member Function Documentation

◆ operator()() [1/2]

template<class _Operation>
result_type binder2nd< _Operation >::operator() ( _ConstArgParamType  __x) const
inline

Definition at line 243 of file _function.h.

244  { return op(__x, value); }
_Operation op
Definition: _function.h:237

◆ operator()() [2/2]

template<class _Operation>
result_type binder2nd< _Operation >::operator() ( _ArgParamType  __x) const
inline

Definition at line 246 of file _function.h.

247  { return op(__x, value); }
_Operation op
Definition: _function.h:237

Member Data Documentation

◆ op

template<class _Operation>
_Operation binder2nd< _Operation >::op
protected

Definition at line 237 of file _function.h.

Referenced by binder2nd< _Operation >::operator()().

◆ value

template<class _Operation>
_Operation::second_argument_type binder2nd< _Operation >::value
protected

Definition at line 238 of file _function.h.


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