KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want a simple yet efficient circular buffer/queue. If I use std::vector , I have to do this: if ( v.size() >= limit ) { std::vector<int> it = v.begin(); v.insert( it, data ); v.erase( it+1 ); } Is there any simpler solution?
Tags (comma-separated)
Save Edits
Cancel