The C++23 std::views::cartesian_product
is a view representing the n-ary cartesian product of the content of the views passed in as arguments.
One of the use cases of std::views::cartesian_product
is replacing standard nested for loops.
Click to open in Compiler Explorer.
Leave a comment
Simon your content is always interesting, thanks for your work!