IVector<TValue>.reserve(Int32) 方法
定义
保留存储以确保容器的最小增长容量。Reserves storage to ensure the minimum growth capacity for the container.
public:
void reserve(int _Capacity);
public void reserve (int _Capacity);
abstract member reserve : int -> unit
Public Sub reserve (_Capacity As Integer)
参数
- _Capacity
- Int32
容器的新的最小容量。The new minimum capacity of the container.
注解
有关详细信息,请参阅 vector:: reserve (STL/CLR) 。For more information, see vector::reserve (STL/CLR).