From: Neal D. Becker (ndbecker2_at_[hidden])
Date: 2004-10-28 06:27:47
Pavel Vozenilek wrote:
> "Darren Cook" wrote:
>> I found some circular buffers that nearly do what I want
>>   , but they are lower-level as they don't offer the ostream
>> interface. (In my case I don't need thread-safety.)
> Did you look on Boost circular_buffer (currently in Files section)?
> It is not yet oficially released but should get into 1.33.
You may find cycle_iterator useful. I have uploaded to files area:
1. cyclic iterator adaptor. Keeps track of wraparounds.
2. similar to 1, but doesn't track wraparounds. This is more efficient in
case you don't need that feature.
3. Ring adapts a container making it cyclic.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk