
29 Oct
2004
29 Oct
'04
11:21 a.m.
Darren Cook wrote:
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:
I had a look but wasn't sure where it fits in - is it an alternative to boost::circular_buffer?
Yes. The behaviour of circular_buffer and cycle_iterator are not the same. I grabbed the latest circular_buffer.zip from FILES, but there is no doc. AFAICT, the main difference is that cycle_iterator is meant to be a fixed size, while I believe circular_buffer is variable size up to a maximum? cycle_iterator (and Ring) are also smaller and simpler code.