C++ iterator wrapper/adaptor example – Andy Balaam’s Blog
May 12, 2017 [C++, Tech] Series: Iterator, Iterator Wrapper, Non-1-1 Wrapper If you want to wrap an iterable range with another that transforms the underlying iterators in some way and allows looping or constructing other objects: for (auto ch : Upper("abcdef")) { // Prints "ABCDEF" std::cout << ch;…
Read More