Daily bit(e) of C++ | std::views::elements
Daily bit(e) of C++ #421, A C++20 view that produces a view over the n-th elements of tuple-like objects from the input range.
The C++20 std::views::elements takes a range of tuple-like objects and produces a view over the n-th element from each tuple.
The concept of tuple-like was formalized in C++23 and includes std::array, std::complex (C++26), std::pair, std::tuple and std::ranges::subrange.