[try Beta version]
Not logged in

 
Container space management

Dec 10, 2013 at 4:34am
With which member function containers manages space for its elements?

Dec 10, 2013 at 5:03am
Are you talking about STL container classes?
Dec 10, 2013 at 5:06am
Yes, exactly.
Dec 10, 2013 at 5:26am
Well some STL containers have a resize() function which will either make the container larger or discard elements and force it to be smaller. Examples are vector and deque. However, these containers also automatically grow and shrink as items are added and/or removed.
Topic archived. No new replies allowed.