Given an output iterator it, the expression *it++ makes a copy of it, increments it, and then returns the copy which is finally dereferenced The important notions needed to understand are as follows: The standard requires that *it++ = t work for output iterators Output iterators are single pass iterators, which…
How to adapt a non-STL iterator
The solution proposed here will not scale in general, but it is still nice for limited usage scenarios.…