The four states an iterator can be in: valid, past-the-end, before-the-beginning and invalid.
Enumerator |
---|
valid |
Iterator points to a valid object.
|
past_the_end |
Iterator reached end of container.
|
before_the_beginning |
|
invalid |
Iterator is invalid, probably due to an error.
|