This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is this a bug or lack of understanding?


> In both cases you're pairing a string and an int.  In the first case you're mapping the lexicographic order of the
> strings to the order of the ints.  In the second case you're mapping the length of the strings to the order of the
> ints.

Ok, I get that (sort of - the sort function is used to determine unique keys.  Keys are equivalent if neither is less than
the other?)

But then my problem is.... How to output the map ordered by key length?



--
Chris Picton
Usko Communications Systems Developer
Chris.Picton@usko.com




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]