Function Set.capacity
Maximum amount of elements this Set can hold without resizing and rehashing. Note that it doesn't mean that the Set will hold exactly capacity elements. capacity tells the size of the container under a best-case distribution of elements.
size_t capacity() const @property;
Returns
Set capacity.
Example
Set!int set;
assert(set .capacity == 0);
set .insert(8);
assert(set .capacity == 3);