B
Bob Hairgrove
Hello,
Is there an STL class for working with contiguous ranges of things? I
can write one myself, but it would be nice if there were something
standard I could use -- don't like to re-invent the wheel. Boost
doesn't seem to have this, or have I overlooked something?
For example, I could implement a time range by storing either the
start and end times or the start time and number of seconds. Then I
would have member functions to calculate whether time A was contained
within the range, whether another range intersects it, etc.
TIA
Is there an STL class for working with contiguous ranges of things? I
can write one myself, but it would be nice if there were something
standard I could use -- don't like to re-invent the wheel. Boost
doesn't seem to have this, or have I overlooked something?
For example, I could implement a time range by storing either the
start and end times or the start time and number of seconds. Then I
would have member functions to calculate whether time A was contained
within the range, whether another range intersects it, etc.
TIA