Re: std::vector memory allocation
"onion_skin" <onion_skin_RMV@travers.com> wrote in message
> 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?
No that's not correct, and wouldn't be efficient enough.
Actual method is implementation defined, doubling the capacity each time
would be a possible method however.
|All times are GMT. The time now is 05:23 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.