title: Is this normal behavior for a std::vector?
body: <p>I have a std::vector of a class called OGLSHAPE.</p>
  
  <p>each shape has a vector of SHAPECONTOUR struct which has a vector of float and a vector of vector of double. it also has a vector of an outline struct which has a vector of float in it.</p>
  
  <p>Initially, my program starts up using 8.7 MB of ram. I noticed that when I started filling these these up, ex adding doubles and floats, the memory got fairly high quickly, then leveled off. When I clear the OGLSHAPE vector, still about 19MB is used. Then if I push about 150 more shapes, then clear those, I'm now using around 19.3MB of ram. I would have thought that logically, if the first time it went from 8.7 to 19, that the next time it would go up to around 30. I'm not sure what it is. I thought it was a memory leak but now I'm not sure. All I do is push numbers into std::vectors, nothing else. So I'd expect to get all my memory back. What could cause this?</p>
  
  <p>Thanks</p>
  
  <blockquote>
    <p>*edit, okay its memory fragmentation
    from allocating lots of small things,
    how can that be solved?</p>
  </blockquote>