ensureCapacity

fun ensureCapacity(expectedElements: Int)

Ensure this container can hold at least the given number of elements without resizing its buffers.

Parameters

expectedElements

The total number of elements, inclusive.