Iros
 
Loading...
Searching...
No Matches
range.h
Go to the documentation of this file.
1#pragma once
2
4#include "di/meta/language.h"
5
6namespace di::container::view {
7namespace detail {
9 template<concepts::Integer T>
10 constexpr auto operator()(T end) const {
11 return view::iota(static_cast<T>(0), end);
12 }
13
14 template<concepts::Integer T, concepts::Integer U>
16 constexpr auto operator()(T start, U end) const {
17 return view::iota(start, end);
18 }
19 };
20}
21
22constexpr inline auto range = detail::RangeFunction {};
23}
24
25namespace di {
26using view::range;
27}
Definition language.h:241
Definition adjacent.h:9
Definition adjacent.h:8
constexpr auto iota
Definition iota.h:35
constexpr auto range
Definition range.h:22
constexpr auto end
Definition end.h:47
Definition zstring_parser.h:9
constexpr auto operator()(T end) const
Definition range.h:10