Library Version 11.2.5.2

operator-
Prev | Chapter 20. Db_reverse_iterator | Next

## operator-

### Function Details

    self operator-(difference_type n) const

Iterator shuffle operator.

Return a new iterator by moving this iterator backward by n elements.

#### Parameters

##### n

The amount and direction of movement. If negative, will move towards reverse direction.

#### Return Value

A new iterator at new position.

    difference_type operator-(const self &itr) const

Return the negative value of the difference of indices of elements this iterator and itr are sitting on.

#### Parameters

##### itr

The other reverse iterator.

#### Return Value

itr.index - this->index.

### Group: Operators for random reverse iterators

Methods below only applies to random iterators.

/////

Return a new iterator by moving this iterator backward or forward by n elements.

### Class

db_reverse_iterator

Prev | Up | Next
operator+ | Home | operator+=