Boost logo

Boost :

From: David Bergman (davidb_at_[hidden])
Date: 2002-09-06 10:27:02


Please, do not do this to the poor '==', it did not deserve to be
irreflexive ;-)

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of Douglas Gregor
Sent: Friday, September 06, 2002 9:50 AM
To: boost_at_[hidden]
Subject: Re: [boost] Interval Library and comparison operators

On Thursday 05 September 2002 11:59 pm, Joel Young wrote:
> From: Douglas Gregor <gregod_at_[hidden]>
>
> > I can vouch for the need for the definition:
> > [a,b] RelOp [c,d] := x RelOp y for all (x, y) where a <= x <= c, b
> > <= y <= d
>
> Hi Doug,
>
> Could you describe some of the RelOps you find interesting?

<, <=, ==, !=, >=, > are all useful for me. Basically, I just need the
standard integer relations defined for intervals so that I can answer
the
question:
  If x is in the interval [a,b] and y is in the interval [c,d], what is
the
result of x RelOp y?

The result may be (always) true, (always) false, or indeterminate.

        Doug
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


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