
23 Feb
2010
23 Feb
'10
8:57 a.m.
On 02/22/2010 03:51 AM, OvermindDL1 wrote:
On Sun, Feb 21, 2010 at 4:44 PM, Andrey Semashev <andrey.semashev@gmail.com> wrote:
How is it different from having an iterator or a pointer to the inserted element?
Because those can get invalidated if the map resizes I would wager...
No, they don't. IIRC, both are stable during the insertion/erasure. In case of unordered containers, rehashing invalidates iterators, but not pointers.