ReactOS  0.4.15-dev-5463-g138eb58
_UnaryPredWrapper< _StorageT, _ValueT, _UnaryPredicate > Struct Template Reference

#include <_tools.h>

Public Types

typedef _CastTraits< _StorageT, _ValueT > cast_traits
 

Public Member Functions

 _UnaryPredWrapper (_UnaryPredicate const &__pred)
 
bool operator() (_StorageT const &__ref) const
 

Private Attributes

_UnaryPredicate _M_pred
 

Detailed Description

template<class _StorageT, class _ValueT, class _UnaryPredicate>
struct _UnaryPredWrapper< _StorageT, _ValueT, _UnaryPredicate >

Definition at line 434 of file _tools.h.

Member Typedef Documentation

◆ cast_traits

template<class _StorageT , class _ValueT , class _UnaryPredicate >
typedef _CastTraits<_StorageT, _ValueT> _UnaryPredWrapper< _StorageT, _ValueT, _UnaryPredicate >::cast_traits

Definition at line 435 of file _tools.h.

Constructor & Destructor Documentation

◆ _UnaryPredWrapper()

template<class _StorageT , class _ValueT , class _UnaryPredicate >
_UnaryPredWrapper< _StorageT, _ValueT, _UnaryPredicate >::_UnaryPredWrapper ( _UnaryPredicate const __pred)
inline

Definition at line 437 of file _tools.h.

437 : _M_pred(__pred) {}
_UnaryPredicate _M_pred
Definition: _tools.h:443
_STLP_INLINE_LOOP _InputIter _Predicate __pred
Definition: _algo.h:68

Member Function Documentation

◆ operator()()

template<class _StorageT , class _ValueT , class _UnaryPredicate >
bool _UnaryPredWrapper< _StorageT, _ValueT, _UnaryPredicate >::operator() ( _StorageT const __ref) const
inline

Definition at line 439 of file _tools.h.

440  { return _M_pred(cast_traits::to_value_type_cref(__ref)); }
static value_type const & to_value_type_cref(storage_type const &__ref)
Definition: _tools.h:414
_UnaryPredicate _M_pred
Definition: _tools.h:443

Member Data Documentation

◆ _M_pred

template<class _StorageT , class _ValueT , class _UnaryPredicate >
_UnaryPredicate _UnaryPredWrapper< _StorageT, _ValueT, _UnaryPredicate >::_M_pred
private

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