c++ what's the result of iterator + integer when past-end-iterator?

前端 未结 5 2026
生来不讨喜
生来不讨喜 2021-01-13 02:28

suppose you have a random access iterator (eg of std::vector myVector)

when iter + someInt is past-end-iterator, iter + someInt == my

5条回答
提交回复
热议问题