On Fri, Feb 04, 2005 at 11:37:54PM +0100, Erik Hofman wrote:
> You could use qsort to sort the map just prior to using it:

No you cannot, neither is this necessary. std::map<> is always
maintained in sorted order.  For this it uses the comparision function
std::less<> or the one given in the template argument.  See Christian
Mayer's mail for details.

I recommend Nicolai Josuttis' book:  The C++ standard library.  A
tutorial and reference.  He also mentions another technique which could
be used to achive the desired behaviour:  Defining your own char_traits<
char > class.  But IMO this is a bit awkward.

Cheers
-Gerhard
-- 
Gerhard Wesp             o o           Tel.: +41 (0) 43 5347636
Bachtobelstrasse 56       |       http://www.cosy.sbg.ac.at/~gwesp/
CH-8045 Zuerich          \_/       See homepage for email address!

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to