4 ms·
For fun, call reserve() on one of the Boost hash containers when it's empty, and see when the bucket-array allocation really happens. (Don't try this in time-cr
by ncmncm 7y ago
For fun, call reserve() on one of the Boost hash containers when it's empty, and see when the bucket-array allocation really happens. (Don't try this in time-critical code.)
Fortunately the Standard containers do better. But the Standard doesn't say they must.