共用方式為


vector::size_type

A type that counts the number of elements in a vector.

typedef typename Allocator::size_type size_type;

Example

See the example for capacity.

Requirements

Header: <vector>

Namespace: std

See Also

Reference

vector Class

Standard Template Library

Other Resources

vector Members