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

Concept for inspection functions that observe but don't modify values. More...

#include <functional_adapters.hpp>

Concept definition

template<typename Func, typename ValueType>
Func, void, std::add_lvalue_reference_t<std::add_const_t<std::remove_cvref_t<ValueType>>>> ||
Concept for inspection functions that observe but don't modify values.

Detailed Description

Concept for inspection functions that observe but don't modify values.

The function must be invocable with the value type and return void. 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
FuncFunction type
ValueTypeType of values to inspect

Definition at line 153 of file functional_adapters.hpp.