A
Alf P. Steinbach
Given a map<K,V>::const_iterator, how to erase the referred to element in
constant time?
I think the apparent lack of a way to do it is a basic design error with map and
possibly other containers, that they've misunderstood logical constness.
The issue popped up some time ago when I was answering a question in
[alt.comp.lang.learn.c-c++],
Cheers & TIA.,
- Alf (if you delete an 'e', and type an 'e' again, is it the same 'e', eh?)
constant time?
I think the apparent lack of a way to do it is a basic design error with map and
possibly other containers, that they've misunderstood logical constness.
The issue popped up some time ago when I was answering a question in
[alt.comp.lang.learn.c-c++],
Cheers & TIA.,
- Alf (if you delete an 'e', and type an 'e' again, is it the same 'e', eh?)