Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
helios::utils::PredicateFor Concept Reference

Concept for predicate functions that can be applied to iterator values. More...

#include <functional_adapters.hpp>

Concept definition

template<typename Pred, typename ValueType>
Pred, bool, std::add_lvalue_reference_t<std::add_const_t<std::remove_cvref_t<ValueType>>>> ||
Concept for predicate functions that can be applied to iterator values.

Detailed Description

Concept for predicate functions that can be applied to iterator values.

The predicate must be invocable with the value type and return a boolean-testable result. Supports both direct invocation and std::apply for tuple unpacking. The result must be usable in boolean contexts (if statements, etc.). Allows const ref consumption even if the original type is just ref or value.

Template Parameters
PredPredicate type
ValueTypeType of values to test

Definition at line 120 of file functional_adapters.hpp.