STL version of boost::circular_buffer??
Nov 29, 2011 at 1:19pm
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
Nov 29, 2011 at 1:55pm
I believe std::queue is typically implemented as a ring.
Nov 29, 2011 at 2:38pm
std::queue is not a circular buffer.
Nov 29, 2011 at 8:21pm
I have used a vector and with slight modification to my code it does my job :)
Topic archived. No new replies allowed.