This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Something about std::list<> member functions.
- From: Dhruv Matani <dhruvbird at gmx dot net>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: 09 Aug 2003 14:22:52 +0530
- Subject: Something about std::list<> member functions.
- Organization:
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/