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.
Reports the size of allocated storage for the container.
public: int capacity();
public int capacity ();
abstract member capacity : unit -> int
Public Function capacity () As Integer
The storage that is currently allocated to hold the controlled sequence, a value at least as large as size().
For more information, see vector::capacity (STL/CLR).