chsvlib
chsv helper source code

◆ operator++() [2/2]

generating_input_iterator operator++ ( int  )

Changes position of the iterator once and returns a copy of the iterator in a state before the increment.

Returns
A copy of the iterator with a state before the increment. If the previous state had a cached value it is copied to the returned iterator. Otherwise, the iterator in the old state will not have a value and upon dereferencing will call its copy of the generating functor perhaps before the iterator in the new state does.

The operator makes the iterator change its positional value and invalidate its cache forcing it to call the generating functional object upon a next access to a value of the iterator.