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. Compiler explorer link: https://lnkd.in/eu4m7uqW #cpp #cplusplus #coding #programming #dailybiteofcpp
Juan Antonio Herreros Bragado
where is p used in the code?
Great utility 💪
I thought this was missing in ranges library. Now it is not!
cool...
Do you mean that “P” is a Central Point ..and you gave a directions around the central point to creat 3*3 grid ?