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?


> >     struct s {
> >         bool operator()(string s1, string s2) {
> >             return (s1.size() < s2.size()
> > 		    or (s1.size() == s2.size() and s1 < s2));
> >         }
> >     };

> With that comparison functoid you don't need a multimap.  You've got
> a primary and a seconday collation. Original problem solved, QED.

Although I expected comments on my use of "alternate tokens", I got
none. Is everybody using 2.96 snapshots so they don't notice ?-)

Martin

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