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

Concept for valid resource types. More...

#include <resource.hpp>

Concept definition

template<typename T>
concept ResourceTrait =
std::destructible<T> &&
(std::move_constructible<T> || std::copy_constructible<T>) &&
std::is_object_v<std::remove_cvref_t<T>> &&
!std::is_polymorphic_v<std::remove_cvref_t<T>>
Concept for valid resource types.
Definition resource.hpp:25

Detailed Description

Concept for valid resource types.

A resource must be destructible, be an object, move or copy constructible, and not polymorphic.

Definition at line 25 of file resource.hpp.