Boost logo

Boost :

From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2007-03-13 18:19:07


On 3/13/07, Sam Schetterer <samthecppman_at_[hidden]> wrote:
> Ok. I will make sure that it is possible for the user to specify the
> function used to compare objects. However, using the interface class with
> one's own classes, less-than functions can be defined without interfering
> with the actual less-than operator. Also, a few of you asked about a "sort
> within sort". That can already be done by radixsort for your objects because
> radixsort examines individual bytes, not the whole thing. I knew that people
> would want this, so I supplied radix sort. I also wrote a function that will
> put all of the bytes of information in a single sequence, basically, a
> string of bytes. That way, you can "sort within sort". Also, someone asked

Isn't that a bit expensive?
Why not first compare the first byte/part and then if necessary the
second byte/part?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk