فهرست منبع

stl: replace <functional> everywhere

skypjack 2 ماه پیش
والد
کامیت
431556c069

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

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

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

@@ -3,7 +3,6 @@
 
 #include <compare>
 #include <concepts>
-#include <functional>
 #include "../config/config.h"
 #include "../core/bit.hpp"
 #include "../core/compressed_pair.hpp"
@@ -11,6 +10,7 @@
 #include "../stl/bit.hpp"
 #include "../stl/cmath.hpp"
 #include "../stl/cstddef.hpp"
+#include "../stl/functional.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/limits.hpp"
 #include "../stl/memory.hpp"

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

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

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

@@ -2,7 +2,6 @@
 #define ENTT_CORE_ALGORITHM_HPP
 
 #include <concepts>
-#include <functional>
 #include "../stl/algorithm.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/functional.hpp"

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

@@ -3,7 +3,6 @@
 
 #include <compare>
 #include <concepts>
-#include <functional>
 #include "../config/config.h"
 #include "../container/dense_map.hpp"
 #include "../core/algorithm.hpp"

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

@@ -2,7 +2,6 @@
 #define ENTT_GRAPH_FLOW_HPP
 
 #include <concepts>
-#include <functional>
 #include "../config/config.h"
 #include "../container/dense_map.hpp"
 #include "../container/dense_set.hpp"

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

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

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

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

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

@@ -2,12 +2,12 @@
 #define ENTT_POLY_POLY_HPP
 
 #include <concepts>
-#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/functional.hpp"
 #include "../stl/tuple.hpp"
 #include "../stl/type_traits.hpp"
 #include "../stl/utility.hpp"

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

@@ -3,7 +3,6 @@
 
 #include <compare>
 #include <concepts>
-#include <functional>
 #include "../container/dense_map.hpp"
 #include "../core/compressed_pair.hpp"
 #include "../core/fwd.hpp"

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

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

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

@@ -1,7 +1,6 @@
 #ifndef ENTT_SIGNAL_DISPATCHER_HPP
 #define ENTT_SIGNAL_DISPATCHER_HPP
 
-#include <functional>
 #include "../container/dense_map.hpp"
 #include "../core/compressed_pair.hpp"
 #include "../core/concepts.hpp"