Daily bit(e) of C++ | std::views::elements
Daily bit(e) of C++ ♻️421, A view over the n-th element of each tuple from a range of tuple-like objects: std::views::elements.
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.
Note that the concept of tuple-like was only formalized in C++23 and currently includes std::array, std::complex (C++26), std::pair, std::tuple and std::ranges::subrange (and user types with the appropriate interface/customizations).