Table.clear

Removes all remaining slots from a container.

mixintemplate Table(Container, KeyType, SlotType, Allocator, alias CallGCRange)
@trusted nothrow
void
clear
(
bool reuse = true
)

Parameters

reuse bool

If true, keep allocated memory and reset metadata. Otherwise all resources are disposed.

Meta