共用方式為


vector::const_iterator

A type that provides a random-access iterator that can read a const element in a vector.

typedef implementation-defined const_iterator;

Remarks

A type const_iterator cannot be used to modify the value of an element.

Example

See the example for back for an example that uses const_iterator.

Requirements

Header: <vector>

Namespace: std

See Also

Concepts

vector Class

vector Members

Standard Template Library