Skip to content

Commit

Permalink
move_iterator should use iter_move in op* and op[]
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler committed Nov 16, 2016
1 parent ad8807c commit e70a378
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iterators.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3188,7 +3188,7 @@
using difference_type = difference_type_t<I>;
using value_type = value_type_t<I>;
using iterator_category = input_iterator_tag;
using reference = @\seebelow@;
using reference = rvalue_reference_t<I>;

move_iterator();
explicit move_iterator(I i);
Expand Down Expand Up @@ -3350,7 +3350,7 @@
\begin{itemdescr}
\pnum
\effects Equivalent to:
\tcode{return static_cast<reference>(*current);}
\tcode{return iter_move(current);}
\end{itemdescr}

\rSec4[move.iter.op.incr]{\tcode{move_iterator::operator++}}
Expand Down Expand Up @@ -3495,7 +3495,7 @@
\begin{itemdescr}
\pnum
\effects Equivalent to:
\tcode{return static_cast<reference>(current[n]);}
\tcode{return iter_move(current + n);}
\end{itemdescr}

\rSec4[move.iter.op.comp]{\tcode{move_iterator} comparisons}
Expand Down

0 comments on commit e70a378

Please sign in to comment.