IVector<TValue>.resize 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.
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 |
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om