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

Concept for resources that provide thread-safety trait. More...

#include <resource.hpp>

Concept definition

template<typename T>
{ std::remove_cvref_t<T>::kThreadSafe } -> std::convertible_to<bool>;
}
Concept for valid resource types.
Definition resource.hpp:25
Concept for resources that provide thread-safety trait.
Definition resource.hpp:48

Detailed Description

Concept for resources that provide thread-safety trait.

A resource with thread-safety trait must satisfy ResourceTrait and provide:

  • static constexpr bool kThreadSafe variable

Definition at line 48 of file resource.hpp.