Relative Content

Tag Archive for c++c++20std-ranges

Can’t create std::ranges::subrange with my iterator

I am trying to define an iterator that iterates through a puzzle game board cells by a given starting cell and some link representing some kind of a connection between the cells. Below I provided a sample code with the same methods but a trivial implementation that potentially should iterate over the cells with the coordinates {0, 0}, {1, 1}, {2, 2}, {3, 3}, {4, 4}: