Răsfoiți Sursa

stl: add cstddef.hpp

skypjack 2 zile în urmă
părinte
comite
0cd14686dd

+ 1 - 0
CMakeLists.txt

@@ -198,6 +198,7 @@ if(ENTT_INCLUDE_HEADERS)
         stl/algorithm.hpp
         stl/array.hpp
         stl/atomic.hpp
+        stl/cstddef.hpp
         stl/functional.hpp
         stl/iterator.hpp
         stl/memory.hpp

+ 1 - 1
src/entt/container/dense_map.hpp

@@ -5,7 +5,6 @@
 #include <cmath>
 #include <compare>
 #include <concepts>
-#include <cstddef>
 #include <functional>
 #include <limits>
 #include <memory>
@@ -15,6 +14,7 @@
 #include "../core/iterator.hpp"
 #include "../core/memory.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"

+ 1 - 1
src/entt/container/dense_set.hpp

@@ -5,7 +5,6 @@
 #include <cmath>
 #include <compare>
 #include <concepts>
-#include <cstddef>
 #include <functional>
 #include <limits>
 #include <memory>
@@ -13,6 +12,7 @@
 #include "../core/bit.hpp"
 #include "../core/compressed_pair.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"

+ 1 - 1
src/entt/container/table.hpp

@@ -2,9 +2,9 @@
 #define ENTT_CONTAINER_TABLE_HPP
 
 #include <concepts>
-#include <cstddef>
 #include "../config/config.h"
 #include "../core/iterator.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/core/any.hpp

@@ -2,10 +2,10 @@
 #define ENTT_CORE_ANY_HPP
 
 #include <concepts>
-#include <cstddef>
 #include <memory>
 #include "../config/config.h"
 #include "../core/concepts.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "fwd.hpp"

+ 1 - 1
src/entt/core/bit.hpp

@@ -3,8 +3,8 @@
 
 #include <bit>
 #include <concepts>
-#include <cstddef>
 #include "../config/config.h"
+#include "../stl/cstddef.hpp"
 
 namespace entt {
 

+ 1 - 1
src/entt/core/compressed_pair.hpp

@@ -2,7 +2,7 @@
 #define ENTT_CORE_COMPRESSED_PAIR_HPP
 
 #include <concepts>
-#include <cstddef>
+#include "../stl/cstddef.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/core/fwd.hpp

@@ -1,9 +1,9 @@
 #ifndef ENTT_CORE_FWD_HPP
 #define ENTT_CORE_FWD_HPP
 
-#include <cstddef>
 #include <cstdint>
 #include "../config/config.h"
+#include "../stl/cstddef.hpp"
 
 namespace entt {
 

+ 1 - 1
src/entt/core/hashed_string.hpp

@@ -1,8 +1,8 @@
 #ifndef ENTT_CORE_HASHED_STRING_HPP
 #define ENTT_CORE_HASHED_STRING_HPP
 
-#include <cstddef>
 #include <cstdint>
+#include "../stl/cstddef.hpp"
 #include "fwd.hpp"
 
 namespace entt {

+ 1 - 1
src/entt/core/ident.hpp

@@ -1,7 +1,7 @@
 #ifndef ENTT_CORE_IDENT_HPP
 #define ENTT_CORE_IDENT_HPP
 
-#include <cstddef>
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "fwd.hpp"

+ 1 - 1
src/entt/core/memory.hpp

@@ -1,9 +1,9 @@
 #ifndef ENTT_CORE_MEMORY_HPP
 #define ENTT_CORE_MEMORY_HPP
 
-#include <cstddef>
 #include <memory>
 #include "../config/config.h"
+#include "../stl/cstddef.hpp"
 #include "../stl/memory.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"

+ 1 - 1
src/entt/core/type_traits.hpp

@@ -2,8 +2,8 @@
 #define ENTT_CORE_TYPE_TRAITS_HPP
 
 #include <concepts>
-#include <cstddef>
 #include "../config/config.h"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"

+ 1 - 1
src/entt/entity/component.hpp

@@ -2,9 +2,9 @@
 #define ENTT_ENTITY_COMPONENT_HPP
 
 #include <concepts>
-#include <cstddef>
 #include "../config/config.h"
 #include "../core/concepts.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "fwd.hpp"
 

+ 1 - 1
src/entt/entity/entity.hpp

@@ -3,10 +3,10 @@
 
 #include <bit>
 #include <concepts>
-#include <cstddef>
 #include <cstdint>
 #include "../config/config.h"
 #include "../core/bit.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "fwd.hpp"
 

+ 1 - 1
src/entt/entity/group.hpp

@@ -2,7 +2,6 @@
 #define ENTT_ENTITY_GROUP_HPP
 
 #include <concepts>
-#include <cstddef>
 #include "../config/config.h"
 #include "../core/algorithm.hpp"
 #include "../core/fwd.hpp"
@@ -10,6 +9,7 @@
 #include "../core/type_info.hpp"
 #include "../core/type_traits.hpp"
 #include "../stl/array.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"

+ 1 - 1
src/entt/entity/organizer.hpp

@@ -1,12 +1,12 @@
 #ifndef ENTT_ENTITY_ORGANIZER_HPP
 #define ENTT_ENTITY_ORGANIZER_HPP
 
-#include <cstddef>
 #include "../core/type_info.hpp"
 #include "../core/type_traits.hpp"
 #include "../core/utility.hpp"
 #include "../graph/adjacency_matrix.hpp"
 #include "../graph/flow.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

+ 1 - 1
src/entt/entity/registry.hpp

@@ -3,7 +3,6 @@
 
 #include <compare>
 #include <concepts>
-#include <cstddef>
 #include <functional>
 #include <memory>
 #include "../config/config.h"
@@ -18,6 +17,7 @@
 #include "../core/type_traits.hpp"
 #include "../stl/algorithm.hpp"
 #include "../stl/array.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"

+ 1 - 1
src/entt/entity/runtime_view.hpp

@@ -1,8 +1,8 @@
 #ifndef ENTT_ENTITY_RUNTIME_VIEW_HPP
 #define ENTT_ENTITY_RUNTIME_VIEW_HPP
 
-#include <cstddef>
 #include "../stl/algorithm.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

+ 1 - 1
src/entt/entity/snapshot.hpp

@@ -2,10 +2,10 @@
 #define ENTT_ENTITY_SNAPSHOT_HPP
 
 #include <concepts>
-#include <cstddef>
 #include "../config/config.h"
 #include "../container/dense_map.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"

+ 1 - 1
src/entt/entity/sparse_set.hpp

@@ -3,13 +3,13 @@
 
 #include <compare>
 #include <concepts>
-#include <cstddef>
 #include <memory>
 #include "../config/config.h"
 #include "../core/algorithm.hpp"
 #include "../core/any.hpp"
 #include "../core/bit.hpp"
 #include "../core/type_info.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/entity/storage.hpp

@@ -3,13 +3,13 @@
 
 #include <compare>
 #include <concepts>
-#include <cstddef>
 #include <memory>
 #include "../config/config.h"
 #include "../core/bit.hpp"
 #include "../core/iterator.hpp"
 #include "../core/memory.hpp"
 #include "../core/type_info.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/memory.hpp"
 #include "../stl/tuple.hpp"

+ 1 - 1
src/entt/entity/view.hpp

@@ -2,12 +2,12 @@
 #define ENTT_ENTITY_VIEW_HPP
 
 #include <concepts>
-#include <cstddef>
 #include "../config/config.h"
 #include "../core/concepts.hpp"
 #include "../core/iterator.hpp"
 #include "../core/type_traits.hpp"
 #include "../stl/array.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"

+ 1 - 0
src/entt/entt.hpp

@@ -72,6 +72,7 @@ namespace entt::stl {}
 #include "stl/algorithm.hpp"
 #include "stl/array.hpp"
 #include "stl/atomic.hpp"
+#include "stl/cstddef.hpp"
 #include "stl/functional.hpp"
 #include "stl/iterator.hpp"
 #include "stl/memory.hpp"

+ 1 - 1
src/entt/graph/adjacency_matrix.hpp

@@ -2,10 +2,10 @@
 #define ENTT_GRAPH_ADJACENCY_MATRIX_HPP
 
 #include <concepts>
-#include <cstddef>
 #include <memory>
 #include "../config/config.h"
 #include "../core/iterator.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/graph/flow.hpp

@@ -2,7 +2,6 @@
 #define ENTT_GRAPH_FLOW_HPP
 
 #include <concepts>
-#include <cstddef>
 #include <functional>
 #include <memory>
 #include "../config/config.h"
@@ -12,6 +11,7 @@
 #include "../core/fwd.hpp"
 #include "../core/iterator.hpp"
 #include "../stl/algorithm.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/type_traits.hpp"

+ 1 - 1
src/entt/graph/fwd.hpp

@@ -2,9 +2,9 @@
 #define ENTT_GRAPH_FWD_HPP
 
 #include <concepts>
-#include <cstddef>
 #include <memory>
 #include "../core/fwd.hpp"
+#include "../stl/cstddef.hpp"
 
 namespace entt {
 

+ 1 - 1
src/entt/meta/container.hpp

@@ -4,9 +4,9 @@
 #define ENTT_META_CONTAINER_HPP
 
 #include <concepts>
-#include <cstddef>
 #include "../core/concepts.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/meta/factory.hpp

@@ -2,7 +2,6 @@
 #define ENTT_META_FACTORY_HPP
 
 #include <concepts>
-#include <cstddef>
 #include <cstdint>
 #include <functional>
 #include <memory>
@@ -13,6 +12,7 @@
 #include "../core/type_info.hpp"
 #include "../core/type_traits.hpp"
 #include "../locator/locator.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "context.hpp"

+ 1 - 1
src/entt/meta/fwd.hpp

@@ -1,8 +1,8 @@
 #ifndef ENTT_META_FWD_HPP
 #define ENTT_META_FWD_HPP
 
-#include <cstddef>
 #include <limits>
+#include "../stl/cstddef.hpp"
 
 namespace entt {
 

+ 1 - 1
src/entt/meta/meta.hpp

@@ -2,7 +2,6 @@
 #define ENTT_META_META_HPP
 
 #include <concepts>
-#include <cstddef>
 #include <memory>
 #include <string_view>
 #include "../config/config.h"
@@ -15,6 +14,7 @@
 #include "../core/utility.hpp"
 #include "../locator/locator.hpp"
 #include "../stl/array.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/meta/node.hpp

@@ -2,7 +2,6 @@
 #define ENTT_META_NODE_HPP
 
 #include <bit>
-#include <cstddef>
 #include <memory>
 #include "../config/config.h"
 #include "../core/bit.hpp"
@@ -13,6 +12,7 @@
 #include "../core/type_traits.hpp"
 #include "../core/utility.hpp"
 #include "../stl/array.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

+ 1 - 1
src/entt/meta/range.hpp

@@ -3,9 +3,9 @@
 
 #include <compare>
 #include <concepts>
-#include <cstddef>
 #include "../core/fwd.hpp"
 #include "../core/iterator.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/utility.hpp"
 #include "context.hpp"

+ 1 - 1
src/entt/meta/utility.hpp

@@ -1,10 +1,10 @@
 #ifndef ENTT_META_UTILITY_HPP
 #define ENTT_META_UTILITY_HPP
 
-#include <cstddef>
 #include <functional>
 #include "../core/type_traits.hpp"
 #include "../locator/locator.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "meta.hpp"

+ 1 - 1
src/entt/poly/fwd.hpp

@@ -1,7 +1,7 @@
 #ifndef ENTT_POLY_FWD_HPP
 #define ENTT_POLY_FWD_HPP
 
-#include <cstddef>
+#include "../stl/cstddef.hpp"
 
 namespace entt {
 

+ 1 - 1
src/entt/poly/poly.hpp

@@ -2,12 +2,12 @@
 #define ENTT_POLY_POLY_HPP
 
 #include <concepts>
-#include <cstddef>
 #include <functional>
 #include "../core/any.hpp"
 #include "../core/concepts.hpp"
 #include "../core/type_info.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/process/scheduler.hpp

@@ -1,10 +1,10 @@
 #ifndef ENTT_PROCESS_SCHEDULER_HPP
 #define ENTT_PROCESS_SCHEDULER_HPP
 
-#include <cstddef>
 #include <memory>
 #include "../config/config.h"
 #include "../core/compressed_pair.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

+ 1 - 1
src/entt/resource/cache.hpp

@@ -3,13 +3,13 @@
 
 #include <compare>
 #include <concepts>
-#include <cstddef>
 #include <functional>
 #include <memory>
 #include "../container/dense_map.hpp"
 #include "../core/compressed_pair.hpp"
 #include "../core/fwd.hpp"
 #include "../core/iterator.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/tuple.hpp"

+ 1 - 1
src/entt/signal/delegate.hpp

@@ -1,10 +1,10 @@
 #ifndef ENTT_SIGNAL_DELEGATE_HPP
 #define ENTT_SIGNAL_DELEGATE_HPP
 
-#include <cstddef>
 #include <functional>
 #include "../config/config.h"
 #include "../core/type_traits.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/signal/dispatcher.hpp

@@ -1,7 +1,6 @@
 #ifndef ENTT_SIGNAL_DISPATCHER_HPP
 #define ENTT_SIGNAL_DISPATCHER_HPP
 
-#include <cstddef>
 #include <functional>
 #include <memory>
 #include "../container/dense_map.hpp"
@@ -9,6 +8,7 @@
 #include "../core/concepts.hpp"
 #include "../core/fwd.hpp"
 #include "../core/type_info.hpp"
+#include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

+ 1 - 1
src/entt/signal/sigh.hpp

@@ -1,8 +1,8 @@
 #ifndef ENTT_SIGNAL_SIGH_HPP
 #define ENTT_SIGNAL_SIGH_HPP
 
-#include <cstddef>
 #include <memory>
+#include "../stl/cstddef.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

+ 12 - 0
src/entt/stl/cstddef.hpp

@@ -0,0 +1,12 @@
+#ifndef ENTT_STL_CSTDDEF_HPP
+#define ENTT_STL_CSTDDEF_HPP
+
+#include <cstddef>
+
+/*! @cond ENTT_INTERNAL */
+namespace entt::stl {
+
+} // namespace entt::stl
+/*! @endcond */
+
+#endif