Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: empty iterator ranges are valid

...

An empty iterator range (where the two iterators are valid and equivalent) is considered to be valid.

Accessing two iterators that do not refer into the same container or accessing invalidated iterators results in undefined behavior.

...