std::vector<T,Allocator>::capacity_C++中文网
位置:首页 > C++ 参考手册 >容器库 >std::vector > std::vector<T,Allocator>::capacity
size_type capacity() const;
size_type capacity() const noexcept;
返回容器当前已为之分配空间的元素数。
(无)
当前分配存储的容量。
常数。
size
reserve