Assigning Sequence of Increments Values
void iota (ForwardIterator beg, ForwardIterator end, T startValue) • assigns startValue, startValue+1, startValue+2, and so on. • Provided since C++11. • Complexity: linear (numElems assignments and increments). The following program demonstrates how to use iota