/*
interval.hh -- part of flowerlib
- (c) 1996--2008 Han-Wen Nienhuys
+ (c) 1996--2009 Han-Wen Nienhuys
*/
#ifndef INTERVAL_HH
/* A T interval. This represents the closed interval [left,right].
No invariants. T must be a totally ordered ring (with division, anyway ..)
- At instantiation, the function infinity () has to be defined explicitely. */
+ At instantiation, the function infinity () has to be defined explicitly. */
template<class T>
struct Interval_t : public Drul_array<T>
{
static bool left_less (Interval_t<T> const &a, Interval_t<T> const &b)
{
- return a[LEFT] < b[RIGHT];
+ return a[LEFT] < b[LEFT];
}
};