Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::unary_negate< _Predicate > Class Template Reference

#include <ahFunction.H>

Inheritance diagram for Aleph::unary_negate< _Predicate >:
[legend]
Collaboration diagram for Aleph::unary_negate< _Predicate >:
[legend]

Public Member Functions

 unary_negate (const _Predicate &__x)
 
bool operator() (const typename _Predicate::argument_type &__x) const noexcept(noexcept(not static_cast< bool >(_M_pred(__x))))
 The negation of what the predicate says of __x.
 

Protected Attributes

_Predicate _M_pred
 

Additional Inherited Members

- Public Types inherited from Aleph::unary_function< _Predicate::argument_type, bool >
typedef _Predicate::argument_type argument_type
 
typedef bool result_type
 

Detailed Description

template<class _Predicate>
class Aleph::unary_negate< _Predicate >

Definition at line 383 of file ahFunction.H.

Constructor & Destructor Documentation

◆ unary_negate()

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

Definition at line 392 of file ahFunction.H.

Member Function Documentation

◆ operator()()

template<class _Predicate >
bool Aleph::unary_negate< _Predicate >::operator() ( const typename _Predicate::argument_type &  __x) const
inlinenoexcept

The negation of what the predicate says of __x.

Parameters
[in]__xthe argument of the predicate.
Returns
true if what the predicate returns, converted to bool, is false.
Exceptions
anythingthat the predicate or that conversion throws; noexcept when they throw nothing.

Definition at line 402 of file ahFunction.H.

References Aleph::unary_negate< _Predicate >::_M_pred.

Member Data Documentation

◆ _M_pred

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

Definition at line 388 of file ahFunction.H.

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


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