What are the constraints on the iterators that form iterator ranges
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:9| Question number:3
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:9| Question number:3
total answers (1)
The constraints for two iterators,
`begin`
and`end`
, forming an iterator range are1. They refer to elements of, or one past the end of, the same container.
2. `end` must not precede
`begin`
.