Skip to content

Commit

Permalink
[reverse.iter.ops] Simplify reverse_iterator operator function declar…
Browse files Browse the repository at this point in the history
…ations by using non-dependent difference_type. (#1098)

Fixes #831.
  • Loading branch information
jensmaurer authored and tkoeppe committed Nov 22, 2016
1 parent 0248030 commit f8013a4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions source/iterators.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1447,8 +1447,7 @@

\indexlibrarymember{operator+}{reverse_iterator}%
\begin{itemdecl}
constexpr reverse_iterator
operator+(typename reverse_iterator<Iterator>::difference_type n) const;
constexpr reverse_iterator operator+(difference_type n) const;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1461,8 +1460,7 @@

\indexlibrarymember{operator+=}{reverse_iterator}%
\begin{itemdecl}
constexpr reverse_iterator&
operator+=(typename reverse_iterator<Iterator>::difference_type n);
constexpr reverse_iterator& operator+=(difference_type n);
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1479,8 +1477,7 @@

\indexlibrarymember{operator-}{reverse_iterator}%
\begin{itemdecl}
constexpr reverse_iterator
operator-(typename reverse_iterator<Iterator>::difference_type n) const;
constexpr reverse_iterator operator-(difference_type n) const;
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1493,8 +1490,7 @@

\indexlibrarymember{operator-=}{reverse_iterator}%
\begin{itemdecl}
constexpr reverse_iterator&
operator-=(typename reverse_iterator<Iterator>::difference_type n);
constexpr reverse_iterator& operator-=(difference_type n);
\end{itemdecl}

\begin{itemdescr}
Expand All @@ -1511,8 +1507,7 @@

\indexlibrarymember{operator[]}{reverse_iterator}%
\begin{itemdecl}
constexpr @\unspec@ operator[](
typename reverse_iterator<Iterator>::difference_type n) const;
constexpr @\unspec@ operator[](difference_type n) const;
\end{itemdecl}

\begin{itemdescr}
Expand Down

0 comments on commit f8013a4

Please sign in to comment.