stl: add algorithm.hpp

This commit is contained in:
skypjack
2026-04-07 18:15:49 +02:00
parent 0d3cecbff1
commit 213ddb74d5
7 changed files with 18 additions and 4 deletions

View File

@@ -195,6 +195,7 @@ if(ENTT_INCLUDE_HEADERS)
signal/emitter.hpp
signal/fwd.hpp
signal/sigh.hpp
stl/algorithm.hpp
stl/array.hpp
stl/atomic.hpp
stl/functional.hpp

View File

@@ -1,9 +1,9 @@
#ifndef ENTT_CORE_ALGORITHM_HPP
#define ENTT_CORE_ALGORITHM_HPP
#include <algorithm>
#include <concepts>
#include <functional>
#include "../stl/algorithm.hpp"
#include "../stl/functional.hpp"
#include "../stl/iterator.hpp"
#include "../stl/utility.hpp"

View File

@@ -1,7 +1,6 @@
#ifndef ENTT_ENTITY_REGISTRY_HPP
#define ENTT_ENTITY_REGISTRY_HPP
#include <algorithm>
#include <compare>
#include <concepts>
#include <cstddef>
@@ -17,6 +16,7 @@
#include "../core/memory.hpp"
#include "../core/type_info.hpp"
#include "../core/type_traits.hpp"
#include "../stl/algorithm.hpp"
#include "../stl/array.hpp"
#include "../stl/functional.hpp"
#include "../stl/iterator.hpp"

View File

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

View File

@@ -69,6 +69,7 @@ namespace entt::stl {}
#include "signal/dispatcher.hpp"
#include "signal/emitter.hpp"
#include "signal/sigh.hpp"
#include "stl/algorithm.hpp"
#include "stl/array.hpp"
#include "stl/atomic.hpp"
#include "stl/functional.hpp"

View File

@@ -1,7 +1,6 @@
#ifndef ENTT_GRAPH_FLOW_HPP
#define ENTT_GRAPH_FLOW_HPP
#include <algorithm>
#include <concepts>
#include <cstddef>
#include <functional>
@@ -12,6 +11,7 @@
#include "../core/compressed_pair.hpp"
#include "../core/fwd.hpp"
#include "../core/iterator.hpp"
#include "../stl/algorithm.hpp"
#include "../stl/functional.hpp"
#include "../stl/iterator.hpp"
#include "../stl/type_traits.hpp"

View File

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