Create a Generator as Iterators
Learn to create a generator as an iterator.
We'll cover the following
A generator is an iterator that generates its own sequence of values. It does not use a container. It creates values on the fly, returning one at a time as needed. A C++ generator stands on its own; it does not need to wrap around another object.
In this recipe, we'll build a generator for a
Get hands-on with 1400+ tech skills courses.