Luna::UnorderedMap::reserve

void reserve(usize new_cap)

Expands the bucket buffer so that it can store at least new_cap elements without enpanding the bucket buffer again.

Parameters

  • in new_cap

    The number of element to reserve.

Remark

This function does nothing if new_cap is smaller than or equal to capacity.