EnTT 4.0.0
Loading...
Searching...
No Matches
ranges.hpp
1#ifndef ENTT_ENTITY_RANGES_HPP
2#define ENTT_ENTITY_RANGES_HPP
3
4#include <version>
5
6#if defined(__cpp_lib_ranges)
7# include <ranges>
8# include "fwd.hpp"
9
10namespace std::ranges {
11
12template<class... Args>
13inline constexpr bool enable_borrowed_range<entt::basic_view<Args...>>{true};
14
15template<class... Args>
16inline constexpr bool enable_borrowed_range<entt::basic_group<Args...>>{true};
17
18template<class... Args>
19inline constexpr bool enable_view<entt::basic_view<Args...>>{true};
20
21template<class... Args>
22inline constexpr bool enable_view<entt::basic_group<Args...>>{true};
23
24} // namespace std::ranges
25
26#endif
27
28#endif
basic_view(Type &...storage) -> basic_view< get_t< Type... >, exclude_t<> >
Deduction guide.