I’m trying to use ranges for a little buffering system. Can I get some extras please?
[code] /** Returns true if the given range lies completely within this range. */
bool contains (const Range& other) const throw()
{
return other.start >= start && other.end <= end;
}
[/code]
Probably more to come. The code looks a lot cleaner with this class, so I’ll probably have some more ideas.
Bruce