Method EnsureCapacity
View SourceEnsureCapacity(int)
Ensures that the UpdatablePriorityQueue<TElement, TPriority> can hold up to
capacity
items without further expansion of its backing storage.
Declaration
public int EnsureCapacity(int capacity)
Parameters
Type | Name | Description |
---|---|---|
int | capacity | The minimum capacity to be used. |
Returns
Type | Description |
---|---|
int | The current capacity of the UpdatablePriorityQueue<TElement, TPriority>. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | The specified |