This could simply be done as an iterator over a string. Why all the fancy schmancy C++ features?
EDIT: I'm starting to suspect it actually is just an iterator. So why not say that? Instead of mentioning the ranges library, coroutines, generators ...
EDIT: Ok, so ranges make sense. Coroutines still seem overkill to me though.
EDIT: I'm starting to suspect it actually is just an iterator. So why not say that? Instead of mentioning the ranges library, coroutines, generators ...
EDIT: Ok, so ranges make sense. Coroutines still seem overkill to me though.