SSOHashMapOrSet.remove

Remove element and, when possible, shrink its large bin to small.

struct SSOHashMapOrSet(K, V = void, alias Allocator = null, alias hasher = hashOf, uint smallBinMinCapacity = 1, uint capacityScaleNumerator = 2, uint capacityScaleDenominator = 1)
pragma(inline) @trusted
bool
remove
()
(
in K key
)
if (
smallBinMinCapacity >= 1
)

Return Value

Type: bool

true if element was removed, false otherwise.

Meta