stl: cleanup

This commit is contained in:
skypjack
2026-04-29 17:20:48 +02:00
parent 74947434d7
commit 2d69562088
2 changed files with 16 additions and 8 deletions

View File

@@ -7,11 +7,15 @@
# include <ranges>
# include "iterator.hpp"
template<class... Args>
inline constexpr bool std::ranges::enable_borrowed_range<entt::iterable_adaptor<Args...>>{true};
namespace std::ranges {
template<class... Args>
inline constexpr bool std::ranges::enable_view<entt::iterable_adaptor<Args...>>{true};
inline constexpr bool enable_borrowed_range<entt::iterable_adaptor<Args...>>{true};
template<class... Args>
inline constexpr bool enable_view<entt::iterable_adaptor<Args...>>{true};
} // namespace std::ranges
#endif

View File

@@ -7,17 +7,21 @@
# include <ranges>
# include "fwd.hpp"
template<class... Args>
inline constexpr bool std::ranges::enable_borrowed_range<entt::basic_view<Args...>>{true};
namespace std::ranges {
template<class... Args>
inline constexpr bool std::ranges::enable_borrowed_range<entt::basic_group<Args...>>{true};
inline constexpr bool enable_borrowed_range<entt::basic_view<Args...>>{true};
template<class... Args>
inline constexpr bool std::ranges::enable_view<entt::basic_view<Args...>>{true};
inline constexpr bool enable_borrowed_range<entt::basic_group<Args...>>{true};
template<class... Args>
inline constexpr bool std::ranges::enable_view<entt::basic_group<Args...>>{true};
inline constexpr bool enable_view<entt::basic_view<Args...>>{true};
template<class... Args>
inline constexpr bool enable_view<entt::basic_group<Args...>>{true};
} // namespace std::ranges
#endif