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

Concept for components that provide a storage type. More...

#include <component.hpp>

Concept definition

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

Detailed Description

Concept for components that provide a storage type.

A component with name trait must satisfy ComponentTrait and provide:

  • static constexpr ComponentStorageType kStorageType variable

Definition at line 64 of file component.hpp.