ReactOS  0.4.14-dev-49-gfb4591c
unary_negate< _Predicate > Class Template Reference

#include <_function.h>

Inheritance diagram for unary_negate< _Predicate >:
Collaboration diagram for unary_negate< _Predicate >:

Public Types

typedef _Base::argument_type argument_type
 
- Public Types inherited from unary_function< __UNARY_ARG(_Predicate, argument_type), bool >
typedef __UNARY_ARG(_Predicate, argument_typeargument_type
 
typedef bool result_type
 

Public Member Functions

 unary_negate (const _Predicate &__x)
 
bool operator() (_ArgParamType __x) const
 

Protected Attributes

_Predicate _M_pred
 

Private Types

typedef unary_function< typename __UNARY_ARG(_Predicate, argument_type), bool_Base
 
typedef __call_traits< argument_type >::const_param_type _ArgParamType
 

Additional Inherited Members

- Protected Member Functions inherited from unary_function< __UNARY_ARG(_Predicate, argument_type), bool >
 ~unary_function ()
 

Detailed Description

template<class _Predicate>
class unary_negate< _Predicate >

Definition at line 136 of file _function.h.

Member Typedef Documentation

◆ _ArgParamType

template<class _Predicate >
typedef __call_traits<argument_type>::const_param_type unary_negate< _Predicate >::_ArgParamType
private

Definition at line 142 of file _function.h.

◆ _Base

template<class _Predicate >
typedef unary_function<typename __UNARY_ARG(_Predicate, argument_type), bool> unary_negate< _Predicate >::_Base
private

Definition at line 138 of file _function.h.

◆ argument_type

template<class _Predicate >
typedef _Base::argument_type unary_negate< _Predicate >::argument_type

Definition at line 140 of file _function.h.

Constructor & Destructor Documentation

◆ unary_negate()

template<class _Predicate >
unary_negate< _Predicate >::unary_negate ( const _Predicate &  __x)
inlineexplicit

Definition at line 146 of file _function.h.

146 : _M_pred(__x) {}
_Predicate _M_pred
Definition: _function.h:144

Member Function Documentation

◆ operator()()

template<class _Predicate >
bool unary_negate< _Predicate >::operator() ( _ArgParamType  __x) const
inline

Definition at line 147 of file _function.h.

147  {
148  return !_M_pred(__x);
149  }
_Predicate _M_pred
Definition: _function.h:144

Member Data Documentation

◆ _M_pred

template<class _Predicate >
_Predicate unary_negate< _Predicate >::_M_pred
protected

Definition at line 144 of file _function.h.

Referenced by unary_negate< _Predicate >::operator()().


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