Преглед изворни кода

stl: move only to memory.hpp

skypjack пре 1 дан
родитељ
комит
8ed97c2d98

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

@@ -4,7 +4,6 @@
 #include <compare>
 #include <concepts>
 #include <functional>
-#include <memory>
 #include "../config/config.h"
 #include "../core/bit.hpp"
 #include "../core/compressed_pair.hpp"
@@ -16,6 +15,7 @@
 #include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/limits.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

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

@@ -4,7 +4,6 @@
 #include <compare>
 #include <concepts>
 #include <functional>
-#include <memory>
 #include "../config/config.h"
 #include "../core/bit.hpp"
 #include "../core/compressed_pair.hpp"
@@ -14,6 +13,7 @@
 #include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/limits.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

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

@@ -2,7 +2,7 @@
 #define ENTT_CONTAINER_FWD_HPP
 
 #include <functional>
-#include <memory>
+#include "../stl/memory.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"
 

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

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

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

@@ -2,9 +2,9 @@
 #define ENTT_CORE_ITERATOR_HPP
 
 #include <concepts>
-#include <memory>
 #include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 

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

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

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

@@ -1,12 +1,12 @@
 #ifndef ENTT_ENTITY_FWD_HPP
 #define ENTT_ENTITY_FWD_HPP
 
-#include <memory>
 #include "../config/config.h"
 #include "../core/concepts.hpp"
 #include "../core/fwd.hpp"
 #include "../core/type_traits.hpp"
 #include "../stl/cstdint.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 
 namespace entt {

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

@@ -1,9 +1,9 @@
 #ifndef ENTT_ENTITY_HELPER_HPP
 #define ENTT_ENTITY_HELPER_HPP
 
-#include <memory>
 #include "../core/fwd.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "component.hpp"

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

@@ -4,7 +4,6 @@
 #include <compare>
 #include <concepts>
 #include <functional>
-#include <memory>
 #include "../config/config.h"
 #include "../container/dense_map.hpp"
 #include "../core/algorithm.hpp"
@@ -20,6 +19,7 @@
 #include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"
 #include "../stl/iterator.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

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

@@ -3,7 +3,6 @@
 
 #include <compare>
 #include <concepts>
-#include <memory>
 #include "../config/config.h"
 #include "../core/algorithm.hpp"
 #include "../core/any.hpp"
@@ -11,6 +10,7 @@
 #include "../core/type_info.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

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

@@ -3,7 +3,6 @@
 
 #include <compare>
 #include <concepts>
-#include <memory>
 #include "../config/config.h"
 #include "../core/bit.hpp"
 #include "../core/iterator.hpp"

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

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

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

@@ -3,7 +3,6 @@
 
 #include <concepts>
 #include <functional>
-#include <memory>
 #include "../config/config.h"
 #include "../container/dense_map.hpp"
 #include "../container/dense_set.hpp"
@@ -14,6 +13,7 @@
 #include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"
 #include "../stl/iterator.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

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

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

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

@@ -2,8 +2,8 @@
 #define ENTT_LOCATOR_LOCATOR_HPP
 
 #include <concepts>
-#include <memory>
 #include "../config/config.h"
+#include "../stl/memory.hpp"
 #include "../stl/utility.hpp"
 
 namespace entt {

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

@@ -1,10 +1,10 @@
 #ifndef ENTT_META_CTX_HPP
 #define ENTT_META_CTX_HPP
 
-#include <memory>
 #include "../container/dense_map.hpp"
 #include "../core/fwd.hpp"
 #include "../stl/functional.hpp"
+#include "../stl/memory.hpp"
 #include "fwd.hpp"
 
 namespace entt {

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

@@ -3,7 +3,6 @@
 
 #include <concepts>
 #include <functional>
-#include <memory>
 #include "../config/config.h"
 #include "../core/bit.hpp"
 #include "../core/fwd.hpp"
@@ -13,6 +12,7 @@
 #include "../locator/locator.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/cstdint.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "context.hpp"

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

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

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

@@ -1,7 +1,6 @@
 #ifndef ENTT_META_NODE_HPP
 #define ENTT_META_NODE_HPP
 
-#include <memory>
 #include "../config/config.h"
 #include "../core/bit.hpp"
 #include "../core/concepts.hpp"
@@ -14,6 +13,7 @@
 #include "../stl/bit.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/cstdint.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

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

@@ -3,7 +3,7 @@
 #ifndef ENTT_META_POINTER_HPP
 #define ENTT_META_POINTER_HPP
 
-#include <memory>
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "type_traits.hpp"
 

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

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

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

@@ -1,10 +1,10 @@
 #ifndef ENTT_PROCESS_PROCESS_HPP
 #define ENTT_PROCESS_PROCESS_HPP
 
-#include <memory>
 #include "../core/compressed_pair.hpp"
 #include "../core/type_traits.hpp"
 #include "../stl/cstdint.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "fwd.hpp"

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

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

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

@@ -4,7 +4,6 @@
 #include <compare>
 #include <concepts>
 #include <functional>
-#include <memory>
 #include "../container/dense_map.hpp"
 #include "../core/compressed_pair.hpp"
 #include "../core/fwd.hpp"
@@ -12,6 +11,7 @@
 #include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"
 #include "../stl/iterator.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

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

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

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

@@ -1,7 +1,7 @@
 #ifndef ENTT_RESOURCE_LOADER_HPP
 #define ENTT_RESOURCE_LOADER_HPP
 
-#include <memory>
+#include "../stl/memory.hpp"
 #include "../stl/utility.hpp"
 #include "fwd.hpp"
 

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

@@ -3,7 +3,7 @@
 
 #include <compare>
 #include <concepts>
-#include <memory>
+#include "../stl/memory.hpp"
 #include "../stl/utility.hpp"
 #include "fwd.hpp"
 

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

@@ -2,7 +2,6 @@
 #define ENTT_SIGNAL_DISPATCHER_HPP
 
 #include <functional>
-#include <memory>
 #include "../container/dense_map.hpp"
 #include "../core/compressed_pair.hpp"
 #include "../core/concepts.hpp"
@@ -10,6 +9,7 @@
 #include "../core/type_info.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"
+#include "../stl/memory.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"
 #include "../stl/vector.hpp"

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

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

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

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