stl: drop ranges.hpp - some things do not fit custom implementations, that's all
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user