Procházet zdrojové kódy

stl: include bit.hpp

skypjack před 2 dny
rodič
revize
43dcf712b7

+ 1 - 0
CMakeLists.txt

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

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

@@ -1,7 +1,6 @@
 #ifndef ENTT_CONTAINER_DENSE_MAP_HPP
 #define ENTT_CONTAINER_DENSE_MAP_HPP
 
-#include <bit>
 #include <cmath>
 #include <compare>
 #include <concepts>
@@ -13,6 +12,7 @@
 #include "../core/iterator.hpp"
 #include "../core/memory.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/bit.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/limits.hpp"

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

@@ -1,7 +1,6 @@
 #ifndef ENTT_CONTAINER_DENSE_SET_HPP
 #define ENTT_CONTAINER_DENSE_SET_HPP
 
-#include <bit>
 #include <cmath>
 #include <compare>
 #include <concepts>
@@ -11,6 +10,7 @@
 #include "../core/bit.hpp"
 #include "../core/compressed_pair.hpp"
 #include "../core/type_traits.hpp"
+#include "../stl/bit.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/limits.hpp"

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

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

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

@@ -1,10 +1,10 @@
 #ifndef ENTT_ENTITY_ENTITY_HPP
 #define ENTT_ENTITY_ENTITY_HPP
 
-#include <bit>
 #include <concepts>
 #include "../config/config.h"
 #include "../core/bit.hpp"
+#include "../stl/bit.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/cstdint.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/bit.hpp"
 #include "stl/cstddef.hpp"
 #include "stl/cstdint.hpp"
 #include "stl/functional.hpp"

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

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

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

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