ערוך

שתף באמצעות


IVector<TValue>.resize Method

Definition

Changes the number of elements that the container can hold.

Overloads

resize(Int32)

Changes the number of elements in the container to the specified size.

resize(Int32, TValue)

Changes the number of elements in the container to the specified size. If the new size is larger than the old size, the method appends elements that have value _Val.

Remarks

For more information, see vector::resize (STL/CLR).

resize(Int32)

Changes the number of elements in the container to the specified size.

public:
 void resize(int _Newsize);
public void resize (int _Newsize);
abstract member resize : int -> unit
Public Sub resize (_Newsize As Integer)

Parameters

_Newsize
Int32

The new size of the controlled sequence.

Remarks

For more information, see vector::resize (STL/CLR).

Applies to

resize(Int32, TValue)

Changes the number of elements in the container to the specified size. If the new size is larger than the old size, the method appends elements that have value _Val.

public:
 void resize(int _Newsize, TValue _Val);
public void resize (int _Newsize, TValue _Val);
abstract member resize : int * 'Value -> unit
Public Sub resize (_Newsize As Integer, _Val As TValue)

Parameters

_Newsize
Int32

The new size of the controlled sequence.

_Val
TValue

The value of the elements to insert.

Remarks

For more information, see vector::resize (STL/CLR).

Applies to