共用方式為


checked_iterator Members

Reference

Constructors

checked_iterator

Constructs a default checked_iterator or a checked_iterator from an underlying iterator.

Typedefs

difference_type

A type that provides the difference between two checked_iterators referring to elements within the same container.

pointer

A type that provides a pointer to an element addressed by a checked_iterator.

reference

A type that provides a reference to an element addressed by a checked_iterator.

Member Functions

base

Recovers the underlying iterator from its checked_iterator.

Operators

operator==

Tests two checked_iterators for equality.

operator!=

Tests two checked_iterators for inequality.

operator<

Tests if the checked_iterator on the left side of the operator is less than the checked_iterator on the right side.

operator>

Tests if the checked_iterator on the left side of the operator is greater than the checked_iterator on the right side.

operator<=

Tests if the checked_iterator on the left side of the operator is less than or equal to the checked_iterator on the right side.

operator>=

Tests if the checked_iterator on the left side of the operator is greater than or equal to the checked_iterator on the right side.

operator*

Returns the element that a checked_iterator addresses.

operator->

Returns a pointer to the element addressed by the checked_iterator.

operator++

Increments the checked_iterator to the next element.

operator--

Decrements the checked_iterator to the previous element.

operator+=

Adds a specified offset to a checked_iterator.

operator+

Adds an offset to an iterator and returns the new checked_iterator addressing the inserted element at the new offset position.

operator-=

Decrements a specified offset from a checked_iterator.

operator-

Decrements an offset from an iterator and returns the new checked_iterator addressing the inserted element at the new offset position.

operator[]

Returns a reference to an element offset from the element addressed by a checked_iterator by a specified number of positions.

See Also

Concepts

checked_iterator Class

Thread Safety in the Standard C++ Library

Standard Template Library