Variable beluga::views::elements
Defined in File elements.hpp
Variable Documentation
-
template<std::size_t N>
constexpr auto beluga::views::elements =ranges::views::transform([](auto&& tuple) -> decltype(auto) { return std::get<N>(std::forward<decltype(tuple)>(tuple)); })
Range adaptor object that will apply
std::get<N>
to each value in the range lazily.- Template Parameters:
N – Element to get from the array or tuple.
- Param tuple:
Tuple or array instance, with at least
N + 1
elements.