Searched refs:diff_type (Results 1 – 2 of 2) sorted by relevance
541 using diff_type = typename traits::difference_type; member548 inline friend iter operator+(diff_type n, const iter &it) { return it.mPtr + n; }549 inline iter operator+(diff_type n) const { return mPtr + n; }550 inline iter operator-(diff_type n) const { return mPtr - n; }551 inline diff_type operator-(const iter &other) const { return mPtr - other.mPtr; }552 inline iter &operator+=(diff_type n) { mPtr += n; return *this; }553 inline iter &operator-=(diff_type n) { mPtr -= n; return *this; }
45 using diff_type = typename traits::difference_type; member