Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::PredicateWith Concept Reference

f(args...) is a valid call whose result is usable as a condition. More...

#include <ah-concepts.H>

Concept definition

template<typename F, typename... Args>
requires(F && f, Args &&... args)
{
static_cast<bool>(std::forward<F>(f)(std::forward<Args>(args)...));
}
f(args...) is a valid call expression, exactly as written.
f(args...) is a valid call whose result is usable as a condition.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Definition Blossom.H:466
and
Check uniqueness with explicit hash + equality functors.

Detailed Description

f(args...) is a valid call whose result is usable as a condition.

Mirrors if (f(args...)) or not f(args...): the result only needs to be contextually convertible to bool. This is deliberately weaker than std::predicate, which demands an implicit conversion and would reject results with only an explicit operator bool() (such as std::optional or smart pointers) that those call sites accept.

Template Parameters
Fcallable type, including its reference/const category.
Argsargument types, including their reference/const category.

Definition at line 480 of file ah-concepts.H.