ReactOS 0.4.16-dev-340-g0540c21
binder1st< _Operation > Class Template Reference

#include <_function.h>

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

Public Types

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

Public Member Functions

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

Protected Attributes

_Operation op
 
_Operation::first_argument_type _M_value
 

Private Types

typedef unary_function< typename __BINARY_ARG(_Operation, second_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::first_argument_type >::const_param_type _ValueParamType
 

Additional Inherited Members

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

Detailed Description

template<class _Operation>
class binder1st< _Operation >

Definition at line 188 of file _function.h.

Member Typedef Documentation

◆ _ArgParamType

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

Definition at line 197 of file _function.h.

◆ _Base

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

Definition at line 192 of file _function.h.

◆ _ConstArgParamType

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

Definition at line 198 of file _function.h.

◆ _ValueParamType

template<class _Operation >
typedef __call_traits<typename_Operation::first_argument_type>::const_param_type binder1st< _Operation >::_ValueParamType
private

Definition at line 199 of file _function.h.

◆ argument_type

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

Definition at line 194 of file _function.h.

◆ result_type

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

Definition at line 195 of file _function.h.

Constructor & Destructor Documentation

◆ binder1st()

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

Definition at line 205 of file _function.h.

206 : op(__x), _M_value(__y) {}
_Operation op
Definition: _function.h:202
_Operation::first_argument_type _M_value
Definition: _function.h:203

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 211 of file _function.h.

212 { return op(_M_value, __x); }

◆ operator()() [2/2]

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

Definition at line 208 of file _function.h.

209 { return op(_M_value, __x); }

Member Data Documentation

◆ _M_value

template<class _Operation >
_Operation::first_argument_type binder1st< _Operation >::_M_value
protected

Definition at line 203 of file _function.h.

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

◆ op

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

Definition at line 202 of file _function.h.

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


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