Compares two iterators for checking if they are both in the same state.
- Parameters
-
| iterator1 | The first iterator to compare. |
| iterator2 | The second iterator to compare. |
- Returns
- true if the iterators are both in the end state, or both not in the end state; otherwise, false.
- Warning
- This method should be only used to compare an iterator with an end iterator. Do not use it for any other purpose.