Edit

Share via


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.

C#
public void resize(int _Newsize);

Parameters

_Newsize
Int32

The new size of the controlled sequence.

Remarks

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public void resize(int _Newsize, TValue _Val);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1