STL version of boost::circular_buffer??
What can I use from the STL to replicate the boost::circular_buffer??
For example I have the following:
1 2 3 4 5 6 7 8 9 10 11
|
MyStruct{
int blah;
int blahblah;
}
typedef boost::circular_buffer<MyStruct> MyStructCollectionType;
MyStructCollectionType m_StructInfo;
blah blahh
m_StructInfo.push_back( newStructs );
etc etc
|
What can I use to replace this boost implementation??
Thanks
I believe std::queue is typically implemented as a ring.
std::queue is not a circular buffer.
I have used a vector and with slight modification to my code it does my job :)
Topic archived. No new replies allowed.