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 ghassanpl::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:34
constexpr auto bit_count
Equal to the number of bits in the type.
Definition bits.h:33

Detailed Description

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

Definition at line 34 of file ranges.h.