From Jason Turner

[iterator.operations]

Diff to HTML by rtfpessoa

tmp/tmpy4kmtvay/{from.md → to.md} RENAMED
@@ -25,12 +25,12 @@ template<class InputIterator>
25
  *Preconditions:* `last` is reachable from `first`, or `InputIterator`
26
  meets the *Cpp17RandomAccessIterator* requirements and `first` is
27
  reachable from `last`.
28
 
29
  *Effects:* If `InputIterator` meets the *Cpp17RandomAccessIterator*
30
- requirements, returns `(last - first)`; otherwise, returns the number of
31
- increments needed to get from `first` to `last`.
32
 
33
  ``` cpp
34
  template<class InputIterator>
35
  constexpr InputIterator next(InputIterator x,
36
  typename iterator_traits<InputIterator>::difference_type n = 1);
 
25
  *Preconditions:* `last` is reachable from `first`, or `InputIterator`
26
  meets the *Cpp17RandomAccessIterator* requirements and `first` is
27
  reachable from `last`.
28
 
29
  *Effects:* If `InputIterator` meets the *Cpp17RandomAccessIterator*
30
+ requirements, returns `(last - first)`; otherwise, increments `first`
31
+ until `last` is reached and returns the number of increments.
32
 
33
  ``` cpp
34
  template<class InputIterator>
35
  constexpr InputIterator next(InputIterator x,
36
  typename iterator_traits<InputIterator>::difference_type n = 1);