This adds two different growth APIs. This is instead of the more conventional STL reserve method. One allows users that aren't trying to grow in anticipation of an exact count of insertions, but generally trying to size the table to the correct ballpark with a power-of-two estimate.
The other API allows pre-growing to allow a specific number of insertions to be performed without further growth. This API takes the maximum load factor and other implementation details into account.
This adds two different growth APIs. This is instead of the more conventional STL
reserve
method. One allows users that aren't trying to grow in anticipation of an exact count of insertions, but generally trying to size the table to the correct ballpark with a power-of-two estimate.The other API allows pre-growing to allow a specific number of insertions to be performed without further growth. This API takes the maximum load factor and other implementation details into account.