ReactOS 0.4.15-dev-7907-g95bf896
_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) {}
_STLP_INLINE_LOOP _InputIter _Predicate __pred
Definition: _algo.h:68
_UnaryPredicate _M_pred
Definition: _tools.h:443

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

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: