[MAILER-DAEMON@sourceware.cygnus.com: failure notice]
brent verner
brent@rcfile.org
Wed Jul 5 01:43:00 GMT 2000
On 05 Jul 2000 at 11:24 (+0300), Yotam Medini wrote:
|
| It seems that Josuttis's book, SGI's STL and thus gcc's libstdc++ have
| a _wrong_ void return type for:
|
| void std::map<T>::erase(map<T>::iterator pos);
| void std::map<T>::erase(map<T>::iterator first, map<T>::iterator last);
|
| where they should return an iterator to past what was erased:
|
| map<T>::iterator std::map<T>::erase(map<T>::iterator pos);
| map<T>::iterator std::map<T>::erase(map<T>::iterator first,
| map<T>::iterator last);
| Please clarify and/or fix.
Where did you get your info? My copy of 14882 says this about map<>.
23.3.1.2 element access:
void erase(iterator position);
size_type erase(const key_type& x);
void erase(iterator first, iterator last);
(note, I checked the issues list and found nothing relevant to this)
Brent
--
Damon Brent Verner o _ _ _
Cracker Jack? Surprise Certified _o /\_ _ \\o (_)\__/o (_)
brent@rcfile.org _< \_ _>(_) (_)/<_ \_| \ _|/' \/
brent@linux1.org (_)>(_) (_) (_) (_) (_)' _\o_
More information about the Libstdc++
mailing list