Muokkaa

Jaa


PriorityQueue<TElement,TPriority>.EnsureCapacity(Int32) Method

Definition

Ensures that the PriorityQueue<TElement,TPriority> can hold up to capacity items without further expansion of its backing storage.

public:
 int EnsureCapacity(int capacity);
public int EnsureCapacity (int capacity);
member this.EnsureCapacity : int -> int
Public Function EnsureCapacity (capacity As Integer) As Integer

Parameters

capacity
Int32

The minimum capacity to be used.

Returns

The current capacity of the PriorityQueue<TElement,TPriority>.

Exceptions

The specified capacity is negative.

Applies to