A
Angus Leeming
Dinkumware's online STL reference http://tinyurl.com/3es52 declares
std::map's overloaded erase member functions to have the interface:
map::erase
iterator erase(iterator where);
iterator erase(iterator first, iterator last);
size_type erase(const Key& keyval);
Ie, the first two functions above have the same interface as
std::vector returning an iterator
My copy of gcc's routines declares that the interface is:
void erase(iterator where);
void erase(iterator first, iterator last);
size_type erase(const Key& keyval);
As does the SGI online docs at http://tinyurl.com/u2uy
Am I correct in saying that Dinkumware have got it wrong?
Regards,
Angus
std::map's overloaded erase member functions to have the interface:
map::erase
iterator erase(iterator where);
iterator erase(iterator first, iterator last);
size_type erase(const Key& keyval);
Ie, the first two functions above have the same interface as
std::vector returning an iterator
My copy of gcc's routines declares that the interface is:
void erase(iterator where);
void erase(iterator first, iterator last);
size_type erase(const Key& keyval);
As does the SGI online docs at http://tinyurl.com/u2uy
Am I correct in saying that Dinkumware have got it wrong?
Regards,
Angus