32 ms·
> If you reserve() space for 1 more element a 1000 times, you will get ~30 reallocations, not 1000. Surely you mean ~10 reallocations, because 2^10=1024, right
by teo_zero 1y ago
> If you reserve() space for 1 more element a 1000 times, you will get ~30 reallocations, not 1000.
Surely you mean ~10 reallocations, because 2^10=1024, right?