2 ms·
> In C++ the std::vector type handles this by doubling the capacity when full. Of course, the growth factor is implementation-dependent and I believe some comp
by saagarjha 7y ago
> In C++ the std::vector type handles this by doubling the capacity when full.
Of course, the growth factor is implementation-dependent and I believe some compilers use smaller growth factors to improve performance.