This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: [MAILER-DAEMON@sourceware.cygnus.com: failure notice]
- To: Yotam Medini <ymedini at iil dot intel dot com>
- Subject: Re: [MAILER-DAEMON@sourceware.cygnus.com: failure notice]
- From: brent verner <brent at rcfile dot org>
- Date: Wed, 5 Jul 2000 04:39:50 -0400
- Cc: libstdc++ at sourceware dot cygnus dot com
- References: <20000705112458.O14244@iwsl010.iil.intel.com>
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_