C
Comp1597
Suppose we have pairs of integers of the form (a,b). I want to define
(a,b) <= (c,d) as meaning a >=c and b<=d
(The motivation for this definition is that it means that the interval
(a,b) is a subset of (c,d) ).
Are there any STL functions that can be used for this type of sort? I
don't believe the standard sort (applied to the standard containers)
would work.
Thank you.
(a,b) <= (c,d) as meaning a >=c and b<=d
(The motivation for this definition is that it means that the interval
(a,b) is a subset of (c,d) ).
Are there any STL functions that can be used for this type of sort? I
don't believe the standard sort (applied to the standard containers)
would work.
Thank you.