Re: std::vector memory allocation

Discussion in 'C++' started by Chandra Shekhar Kumar, Jun 25, 2003.

  1. when it exceeds vector.capacity()

    onion_skin wrote:

    > When a std::vector has to allocate more memory, am I correct in
    > thinking that it allocates additional memory of equal size to the
    > amount of memory required to store the existing number of elements?
    Chandra Shekhar Kumar, Jun 25, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Koenig

    Re: std::vector memory allocation

    Andrew Koenig, Jun 25, 2003, in forum: C++
    Replies:
    0
    Views:
    939
    Andrew Koenig
    Jun 25, 2003
  2. tom_usenet

    Re: std::vector memory allocation

    tom_usenet, Jun 25, 2003, in forum: C++
    Replies:
    0
    Views:
    1,074
    tom_usenet
    Jun 25, 2003
  3. Ken
    Replies:
    24
    Views:
    3,845
    Ben Bacarisse
    Nov 30, 2006
  4. Replies:
    8
    Views:
    1,898
    Csaba
    Feb 18, 2006
  5. Rune Allnor
    Replies:
    4
    Views:
    933
    Rune Allnor
    Dec 11, 2008
Loading...

Share This Page