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

Concept for action functions that process values. More...

#include <functional_adapters.hpp>

Concept definition

template<typename Action, typename ValueType>
Action, void, std::add_lvalue_reference_t<std::add_const_t<std::remove_cvref_t<ValueType>>>> ||
Concept for action functions that process values.

Detailed Description

Concept for action functions that process values.

The function must be invocable with the value type. Supports both direct invocation and std::apply for tuple unpacking. Allows const ref consumption even if the original type is just ref or value.

Template Parameters
ActionAction function type
ValueTypeType of values to process

Definition at line 167 of file functional_adapters.hpp.