Iros
 
Loading...
Searching...
No Matches
elements.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace di::container::view {
7namespace detail {
8 template<size_t index>
10 template<concepts::ViewableContainer Con>
11 requires(requires(Con&& container) {
12 ElementsView<meta::AsView<Con>, index> { util::forward<Con>(container) };
13 })
14 constexpr auto operator()(Con&& container) const {
15 return ElementsView<meta::AsView<Con>, index> { util::forward<Con>(container) };
16 }
17 };
18}
19
20template<size_t index>
21constexpr inline auto elements = detail::ElementsFunction<index> {};
22}
23
24namespace di {
25using view::elements;
26}
Definition elements_view.h:25
Definition adjacent.h:9
Definition adjacent.h:8
constexpr auto elements
Definition elements.h:21
Definition sequence.h:12
Definition zstring_parser.h:9