stl: drop ranges.hpp - some things do not fit custom implementations, that's all

This commit is contained in:
skypjack
2026-04-29 11:10:29 +02:00
parent 4c47abaca7
commit a931a83870
5 changed files with 8 additions and 32 deletions

View File

@@ -209,7 +209,6 @@ if(ENTT_INCLUDE_HEADERS)
stl/limits.hpp
stl/memory.hpp
stl/ostream.hpp
stl/ranges.hpp
stl/sstream.hpp
stl/string.hpp
stl/string_view.hpp

View File

@@ -4,14 +4,14 @@
#include "../stl/version.hpp"
#if defined(__cpp_lib_ranges)
# include "../stl/ranges.hpp"
# include <ranges>
# include "iterator.hpp"
template<class... Args>
inline constexpr bool ENTT_STL_RANGES::enable_borrowed_range<entt::iterable_adaptor<Args...>>{true};
inline constexpr bool std::ranges::enable_borrowed_range<entt::iterable_adaptor<Args...>>{true};
template<class... Args>
inline constexpr bool ENTT_STL_RANGES::enable_view<entt::iterable_adaptor<Args...>>{true};
inline constexpr bool std::ranges::enable_view<entt::iterable_adaptor<Args...>>{true};
#endif

View File

@@ -4,20 +4,20 @@
#include "../stl/version.hpp"
#if defined(__cpp_lib_ranges)
# include "../stl/ranges.hpp"
# include <ranges>
# include "fwd.hpp"
template<class... Args>
inline constexpr bool ENTT_STL_RANGES::enable_borrowed_range<entt::basic_view<Args...>>{true};
inline constexpr bool std::ranges::enable_borrowed_range<entt::basic_view<Args...>>{true};
template<class... Args>
inline constexpr bool ENTT_STL_RANGES::enable_borrowed_range<entt::basic_group<Args...>>{true};
inline constexpr bool std::ranges::enable_borrowed_range<entt::basic_group<Args...>>{true};
template<class... Args>
inline constexpr bool ENTT_STL_RANGES::enable_view<entt::basic_view<Args...>>{true};
inline constexpr bool std::ranges::enable_view<entt::basic_view<Args...>>{true};
template<class... Args>
inline constexpr bool ENTT_STL_RANGES::enable_view<entt::basic_group<Args...>>{true};
inline constexpr bool std::ranges::enable_view<entt::basic_group<Args...>>{true};
#endif

View File

@@ -83,7 +83,6 @@ namespace entt::stl {}
#include "stl/limits.hpp"
#include "stl/memory.hpp"
#include "stl/ostream.hpp"
#include "stl/ranges.hpp"
#include "stl/sstream.hpp"
#include "stl/string.hpp"
#include "stl/string_view.hpp"

View File

@@ -1,22 +0,0 @@
#ifndef ENTT_STL_RANGES_HPP
#define ENTT_STL_RANGES_HPP
#include "../stl/version.hpp"
#if defined(__cpp_lib_ranges)
# include <ranges>
/*! @cond ENTT_INTERNAL */
namespace entt::stl::ranges {
// nothing to import (yet)
} // namespace entt::stl::ranges
# define ENTT_STL_RANGES std::ranges
/*! @endcond */
#endif
#endif