<<< Container functions returning iterators | Index | Kinds of iterators >>> |
end( ) does not point to anything...
So you can't dereference iterator returned by end( )!
You can't use -> on it either.
Iterators can become stale and hence unsafe to use.
<<< Container functions returning iterators | Index | Kinds of iterators >>> |