共用方式為


list::iterator

A type that provides a bidirectional iterator that can read or modify any element in a list.

typedef implementation-defined iterator;

Remarks

A type iterator can be used to modify the value of an element.

Example

See the example for begin.

Requirements

Header: <list>

Namespace: std

See Also

Reference

list Class

Standard Template Library