共用方式為


checked_array_iterator::operator-

從迭代器中減少位移並傳回新的 checked_array_iterator,其將插入的項目定址在新的位移位置中。

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

參數

  • _Off
    要從 checked_array_iterator中減去的位移。

傳回值

處理 checked_array_iterator 位移的項目。

備註

提供程式碼範例參閱 checked_array_iterator::operator-

如需詳細資訊,請參閱已檢查的迭代器

需求

標頭:<迭代器>

命名空間: std

請參閱

參考

checked_array_iterator 類別

標準樣板程式庫