Skip to content

Commit 7b716da

Browse files
committed
update after review
1 parent 6c7e5cf commit 7b716da

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/standard-library/move-iterator-class.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ The operator returns `move_iterator(*this) -= _Off`.
248248

249249
## <a name="op_star"></a> move_iterator::operator*
250250

251-
Dereferences the stored iterator and returns the value. This behaves like an `rvalue reference` and performs a move assignment. The operator transfers the current element out of the base iterator and the element to the next position becomes the new current element.
251+
Dereferences the stored iterator and returns the value. This behaves like an `rvalue reference` and performs a move assignment. The operator transfers the current element out of the base iterator. The element that follows becomes the new current element.
252252

253253
```cpp
254254
reference operator*() const;

‎docs/standard-library/reverse-iterator-class.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ typedef typename iterator_traits<RandomIterator>::reference reference;
925925

926926
### Remarks
927927

928-
The type is a synonym for the iterator trait typename `iterator_traits`\<RandomIterator>::reference**.
928+
The type is a synonym for the iterator trait typename `iterator_traits<RandomIterator>::reference`.
929929

930930
### Example
931931

@@ -956,7 +956,7 @@ A default `reverse_iterator` or a `reverse_iterator` adapting an underlying iter
956956
957957
The identity that relates all reverse iterators to their underlying iterators is:
958958
959-
&\*(`reverse_iterator` (*i*)) == &\*(*i* - 1).
959+
`&*(reverse_iterator (i)) == &*(i-1)`.
960960
961961
In practice, this means that in the reversed sequence the reverse_iterator will refer to the element one position beyond (to the right of) the element that the iterator had referred to in the original sequence. So if an iterator addressed the element 6 in the sequence (2, 4, 6, 8), then the `reverse_iterator` will address the element 4 in the reversed sequence (8, 6, 4, 2).
962962

0 commit comments

Comments
 (0)