PriorityQueue<TElement,TPriority>.EnsureCapacity(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.