I'm fairly certain that you misunderstood what laserlight said.Quote:
And a function that returns an iterator creates a temporary.
The standard containers return different types (conceptually) of iterators by value depending on whether or not the container is constant in the given situation.
That the block content are fundamentally different, not just superficial differences?
Being "const correct" isn't a superficial difference.