header_utils
Loading...
Searching...
No Matches
ghassanpl::range_predicate Concept Reference

Concept to check if a function is a predicate on the range elements (i.e. returns boolable). More...

#include <ranges.h>

Concept definition

template<typename RANGE, typename FUNC>
concept range_predicate = requires (FUNC func, RANGE range) { { func(*std::ranges::begin(range)) } -> std::convertible_to<bool>; }
Concept to check if a function is a predicate on the range elements (i.e. returns boolable).
Definition ranges.h:36

Detailed Description

Concept to check if a function is a predicate on the range elements (i.e. returns boolable).

Definition at line 36 of file ranges.h.