title: Which STL C++ container to use for a fixed size list?
body: <p>I am having a consuming application which needs to store a maximum of 100 objects in a list to feed to a callback for processing, since it will be redundant to keep old data if the consumer does not catch up. As new data is arrived, it can simply overwrite the oldest element.</p>
  
  <p>I was thinking of using circular buffer container and guessed that it would be deque , but found that it does not use circular list, as well as does not have option to set fixed maximum size. </p>
  
  <p>There is a max_size method in dequeue, but documentation says "This is the maximum potential size the container can reach due to system or library implementation limitations."</p>
  
  <p>Is there some other container I can use?</p>
  
  <p>PS : I am using Visual C++ 2010 express</p>