共用方式為


vector::const_pointer

A type that provides a pointer to a const element in a vector.

typedef typename Allocator::const_pointer const_pointer;

Remarks

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

An iterator is more commonly used to access a vector element.

Requirements

Header: <vector>

Namespace: std

See Also

Reference

vector Class

Standard Template Library

Other Resources

vector Members