Topic: [itr ==> void] = mapthing.erase(itr) when/why?
Author: Dick.Bridges@tais.com
Date: Wed, 27 Mar 2002 22:13:50 GMT Raw View
One of the erase methods for associateive containers is currently defined
as:
"void erase(iterator pos)".
On the other hand, I've seen books and compilers that define this form as:
"itrerator erase(iterator pos)".
- where the returned value is the next iterator after the erased element or
end().
Query: Did the spec EVER specify the second form? If so, when and, more
interesting, why was the change made?
Can anyone provide the answer or point me toward some sources to be
examined?
Thanks for any help.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]