When I pass reserve() a value high enough that may mean the need for reallocation, is the vector reallocated immediately or only at next push_back()?
Printable View
When I pass reserve() a value high enough that may mean the need for reallocation, is the vector reallocated immediately or only at next push_back()?
Memory should be reallocated immediately.
Thanks laserlight.