will a call to std::vector.clear() also set the std::vector.reserve() to zero?
- by monkeyking
If I use .reserve(items) on a vector, the vector will allocate enough memory for my guess of the number of items that I'll need.
If I later on use .clear(), will that just clear the vector or save my earlier defined reserve?
thanks.