Something about std::list<> member functions.
Dhruv Matani
dhruvbird@gmx.net
Sat Aug 9 08:43:00 GMT 2003
I was wondering why in std::list<>, the functions merge, unique, sort,
... are implemented twice, once for the less than operator, and once for
the template argument one. Why can't it be coded just once for the more
general version, and pass std::less<> to then more general one, when the
less general one is called?
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
More information about the Libstdc++
mailing list