共用方式為


checked_array_iterator::operator-

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

checked_array_iterator<_Iterator> operator-(
    difference_type _Off
) const;
difference_type operator-(
    const checked_array_iterator& _Right
) const;

Parameters

  • _Off
    The offset to be decremented from the checked_array_iterator.

Return Value

A checked_array_iterator addressing the offset element.

Remarks

See checked_array_iterator::operator- for a code sample.

For more information, see Checked Iterators.

Requirements

Header: <iterator>

Namespace: std

See Also

Reference

checked_array_iterator Class

Standard Template Library

Other Resources

checked_array_iterator Members