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. Compiler Explorer link: https://lnkd.in/ekF35cBN #cpp #cplusplus #coding #programming #dailybiteofcpp
That's nice. 👍🏻
Thanks for sharing this.