Boost logo

Boost Users :

Subject: Re: [Boost-users] pair of values as range?
From: Neil Groves (neil_at_[hidden])
Date: 2010-07-01 12:56:33

On Thu, Jul 1, 2010 at 5:41 PM, John Dlugosz <JDlugosz_at_[hidden]>wrote:

> Given a std::pair of numbers (not iterators) or other values that have
> suitable comparison functions and the pair is the low,high of a range, is
> there already a library somewhere that does utilities such as range union,
> intersection, intersect testing, etc.?
> Have you considered using Boost.Interval
This wouldn't provide the solution for operating upon std::pair directly
IIRC but seems to be a good solution from the brief description of the

> --John
Neil Groves


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at