In C++ primer 4th edition by Lippman, compound assignment operators for iterator for vector and deque are given :
iter1 += iter2
iter1 -= iter2
Compound-assignment versions of iterator addition and subtraction. Assigns the value of adding or subtracting iter1 and iter2 into iter1.
But when I want to use them, it gives error. Moreover what does it mean to provide compound assignment operators for iterators anyway?