From a8fe00242ac062dfe78badd76f2617cdf9813ea6 Mon Sep 17 00:00:00 2001 From: skypjack Date: Thu, 2 Apr 2026 17:27:53 +0200 Subject: [PATCH] stl: array header --- CMakeLists.txt | 1 + src/entt/entity/group.hpp | 2 +- src/entt/entity/registry.hpp | 2 +- src/entt/entity/view.hpp | 2 +- src/entt/entt.hpp | 1 + src/entt/meta/meta.hpp | 2 +- src/entt/meta/node.hpp | 2 +- src/entt/stl/array.hpp | 12 ++++++++++++ 8 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 src/entt/stl/array.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b3a755c8..4d6dc9ffb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -195,6 +195,7 @@ if(ENTT_INCLUDE_HEADERS) signal/emitter.hpp signal/fwd.hpp signal/sigh.hpp + stl/array.hpp stl/atomic.hpp stl/functional.hpp stl/iterator.hpp diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index d5b742189..1fc10732b 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -1,7 +1,6 @@ #ifndef ENTT_ENTITY_GROUP_HPP #define ENTT_ENTITY_GROUP_HPP -#include #include #include #include "../config/config.h" @@ -10,6 +9,7 @@ #include "../core/iterator.hpp" #include "../core/type_info.hpp" #include "../core/type_traits.hpp" +#include "../stl/array.hpp" #include "../stl/iterator.hpp" #include "../stl/tuple.hpp" #include "../stl/type_traits.hpp" diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index fe7680523..15886a7c0 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -2,7 +2,6 @@ #define ENTT_ENTITY_REGISTRY_HPP #include -#include #include #include #include @@ -18,6 +17,7 @@ #include "../core/memory.hpp" #include "../core/type_info.hpp" #include "../core/type_traits.hpp" +#include "../stl/array.hpp" #include "../stl/functional.hpp" #include "../stl/iterator.hpp" #include "../stl/tuple.hpp" diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index 70b400b46..bcc1bf911 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -1,13 +1,13 @@ #ifndef ENTT_ENTITY_VIEW_HPP #define ENTT_ENTITY_VIEW_HPP -#include #include #include #include "../config/config.h" #include "../core/concepts.hpp" #include "../core/iterator.hpp" #include "../core/type_traits.hpp" +#include "../stl/array.hpp" #include "../stl/iterator.hpp" #include "../stl/tuple.hpp" #include "../stl/type_traits.hpp" diff --git a/src/entt/entt.hpp b/src/entt/entt.hpp index 83f3fb1c6..68d2d9b93 100644 --- a/src/entt/entt.hpp +++ b/src/entt/entt.hpp @@ -69,6 +69,7 @@ namespace entt::stl {} #include "signal/dispatcher.hpp" #include "signal/emitter.hpp" #include "signal/sigh.hpp" +#include "stl/array.hpp" #include "stl/atomic.hpp" #include "stl/functional.hpp" #include "stl/iterator.hpp" diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index f8771aa7f..42a925fcb 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -1,7 +1,6 @@ #ifndef ENTT_META_META_HPP #define ENTT_META_META_HPP -#include #include #include #include @@ -15,6 +14,7 @@ #include "../core/type_traits.hpp" #include "../core/utility.hpp" #include "../locator/locator.hpp" +#include "../stl/array.hpp" #include "../stl/iterator.hpp" #include "../stl/type_traits.hpp" #include "../stl/utility.hpp" diff --git a/src/entt/meta/node.hpp b/src/entt/meta/node.hpp index a82b5ab69..117a4df3b 100644 --- a/src/entt/meta/node.hpp +++ b/src/entt/meta/node.hpp @@ -1,7 +1,6 @@ #ifndef ENTT_META_NODE_HPP #define ENTT_META_NODE_HPP -#include #include #include #include @@ -13,6 +12,7 @@ #include "../core/type_info.hpp" #include "../core/type_traits.hpp" #include "../core/utility.hpp" +#include "../stl/array.hpp" #include "../stl/type_traits.hpp" #include "../stl/utility.hpp" #include "../stl/vector.hpp" diff --git a/src/entt/stl/array.hpp b/src/entt/stl/array.hpp new file mode 100644 index 000000000..5415cce9a --- /dev/null +++ b/src/entt/stl/array.hpp @@ -0,0 +1,12 @@ +#ifndef ENTT_STL_ARRAY_HPP +#define ENTT_STL_ARRAY_HPP + +#include + +/*! @cond ENTT_INTERNAL */ +namespace entt::stl { + +} // namespace entt::stl +/*! @endcond */ + +#endif