GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
resource.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Ivar Härnqvist
2// SPDX-License-Identifier: MIT
3
4#ifndef GREM_EXECUTION_RESOURCE_HPP
5#define GREM_EXECUTION_RESOURCE_HPP
6
8
11
12#include <type_traits> // std::is_..._v
13
14namespace grem::execution {
15
22template <typename T>
23concept resource = !std::is_const_v<T> && !std::is_reference_v<T> && !std::is_array_v<T> && !std::is_pointer_v<T> && !is_entity_range_v<T> && !is_component_pool_v<T>;
24
25} // namespace grem::execution
26
27#endif
Concept that checks if a given type is a valid resource type that can be stored/referenced in e....
Definition resource.hpp:23
Definition Chunk.hpp:19
constexpr bool is_entity_range_v
Boolean that evaluates to true if the given type is considered an entity range type.
Definition entity_range.hpp:81
constexpr bool is_component_pool_v
Boolean that evaluates to true if the given type is considered a component pool reference type.
Definition component_pool.hpp:31