Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::ecs::ComponentWithNameTrait Concept Reference

Concept for components that provide a name. More...

#include <component.hpp>

Concept definition

template<typename T>
{ std::remove_cvref_t<T>::kName } -> std::convertible_to<std::string_view>;
}
Concept to check if a type can be used as a component.
Definition component.hpp:31
Concept for components that provide a name.
Definition component.hpp:53

Detailed Description

Concept for components that provide a name.

A component with name trait must satisfy ComponentTrait and provide:

  • static constexpr std::string_view kName variable

Definition at line 53 of file component.hpp.