$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2006-03-05 13:28:52
On 3/5/06, Sebastian Redl <sebastian.redl_at_[hidden]> wrote:
> >Does Boost contain a (string) compare function that returns -1 if a <
> >b, 0 if a == b and 1 if a > b?
> >Doing both < and == sounds like a lot of extra work in for example
> >sorting algorithms.
> >
> >
> std::string itself has a compare() member function that does this. You
> can use Boost.Bind to turn it into a function object.
But that's only case sensitive I guess.
Does STL also have such a three-way function for ints (or a generic function)?
> In addition, the string algorithm library has such functions in the
> development version, likely to be included in the next official release.
What's the name of those?