|
|
After the reserve() is executed, can the space after the second element of vector be allocated? |
George P wrote: |
---|
Adding elements to a container repeatedly makes a a vector not a great choice as a container since dynamic memory reallocation is an expensive operation. For that a std::list might be better. |
|
|