operator-(std::move_iterator)
來自 cppreference.com
定義於標頭檔案 <iterator> |
||
template< class Iter1, class Iter2 > auto operator-( const move_iterator<Iter1>& lhs, |
(C++11 起) (自 C++17 起為 constexpr) |
|
返回兩個迭代器介面卡之間的距離。
目錄 |
[編輯] 引數
lhs, rhs | - | 要計算差異的迭代器介面卡 |
[編輯] 返回值
lhs.base() - rhs.base()
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
遞增或遞減 move_iterator (public member function) | |
(C++11) |
前進迭代器 (function template) |