Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2008-05-21 09:48:36


Neal Becker wrote:

> Robert Kawulak wrote:
>
>>> From: Neal Becker
>>> One thing might be useful is to have the option to record minimum and
>>> maximum values that are used during a given computation.
>>
...
It would be easy to do this by making my own compare_type (with memory),
except for the unfortunate fact that within_bounds doesn't (currently)
always call with the arguments in the same order:

        if( lower_bound_included() )
            return compare()(value, lower_bound());
        else
            return !compare()(lower_bound(), value);


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