(I'm including SSCCE [ http://www.sscce.org/ ]code snippets so those not familiar with the subject can follow along, the regulars here will implicitly understand without the verbiage)
There are 3 basic ways to "walk through" a container. I'll use a std::vector to illustrate
FYI, Visual Studio 2019, build 16.11.2 requires the C++ language standard to be set to /std:c++latest to compile. Set the language standard to C++20 and VS spits out the following errors:
While searching the bowels of the interwebs to find out the possibilities of a reverse range-based for loop I found at stackoverflow this interesting regular reverse for loop variation I thought was a bit ingenious: