|
DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
|
Represents the method that defines a set of criteria and determines whether the specified object meets those criteria. More...
#include <Predicate.h>
Public Member Functions | |
| Predicate () | |
| Initializes an empty instance of the Predicate class. | |
| Predicate (decltype(nullptr)) | |
| Initializes an empty instance from a null pointer. | |
| template<typename F, typename = std::enable_if_t<!std::is_same_v<std::decay_t<F>, Predicate> && std::is_invocable_r_v<bool, std::decay_t<F>, T>>> | |
| Predicate (F &&func) | |
| Constructs a Predicate delegate from a callable object or lambda. | |
| bool | Invoke (T obj) const |
| Evaluates the predicate criteria against the provided object. | |
| operator bool () const | |
| Checks if the predicate encapsulates a non-null target callable. | |
| bool | operator() (T obj) const |
| Function call operator forwarding to Invoke(). | |
Represents the method that defines a set of criteria and determines whether the specified object meets those criteria.
| T | The type of the object to compare. |
Definition at line 19 of file Predicate.h.
|
inline |
Initializes an empty instance of the Predicate class.
Definition at line 22 of file Predicate.h.
|
inline |
Initializes an empty instance from a null pointer.
Definition at line 25 of file Predicate.h.
|
inline |
Constructs a Predicate delegate from a callable object or lambda.
| F | The invocable type. |
| func | The callable object evaluating criteria on an instance of T. |
Definition at line 31 of file Predicate.h.
|
inline |
Evaluates the predicate criteria against the provided object.
| obj | The target object to evaluate. |
Definition at line 36 of file Predicate.h.
Referenced by operator()().
|
inlineexplicit |
Checks if the predicate encapsulates a non-null target callable.
Definition at line 49 of file Predicate.h.
|
inline |
Function call operator forwarding to Invoke().
| obj | The target object to evaluate. |
Definition at line 43 of file Predicate.h.
References Invoke().