public member function
<iterator>

std::move_iterator::operator--

(1)
move_iterator& operator--();
(2)
move_iterator  operator--(int);
Decrement iterator position
Decreases the iterator by one position.

Internally, the pre-decrement version (1) simply reflects the operation into its base iterator.

The post-decrement version (2) is implemented with a behavior equivalent to
1
2
3
4
5
move_iterator operator--(int) {
  move_iterator temp = *this;
  --(*this);
  return temp;
}

Note that this function requires the base iterator to be at least a bidirectional iterator.

参数

none (the second version overloads the post-decrement operator).

返回值

The pre-decrement version (1) returns *this.
The post-decrement version (2) returns the value *this had before the call.

数据竞争

修改对象。
返回的迭代器可用于访问或修改指向的元素。

异常安全

Provides the same level of guarantee as decreasing (and copying, for (2)) the base iterator.

另见