Skip to content

Commit 597b690

Browse files
committed
[reverse.iterators] Use the public accessor function,
not the exposition-only member 'current', from non-member functions.
1 parent e7c5655 commit 597b690

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

source/iterators.tex

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,12 +3305,12 @@
33053305
\begin{itemdescr}
33063306
\pnum
33073307
\constraints
3308-
The expression \tcode{x.current == y.current} shall be valid and
3308+
The expression \tcode{x.base() == y.base()} shall be valid and
33093309
convertible to \tcode{bool}.
33103310

33113311
\pnum
33123312
\returns
3313-
\tcode{x.current == y.current}.
3313+
\tcode{x.base() == y.base()}.
33143314
\end{itemdescr}
33153315

33163316
\indexlibrarymember{operator"!=}{reverse_iterator}%
@@ -3324,12 +3324,12 @@
33243324
\begin{itemdescr}
33253325
\pnum
33263326
\constraints
3327-
The expression \tcode{x.current != y.current} shall be valid and
3327+
The expression \tcode{x.base() != y.base()} shall be valid and
33283328
convertible to \tcode{bool}.
33293329

33303330
\pnum
33313331
\returns
3332-
\tcode{x.current != y.current}.
3332+
\tcode{x.base() != y.base()}.
33333333
\end{itemdescr}
33343334

33353335
\indexlibrarymember{operator<}{reverse_iterator}%
@@ -3343,12 +3343,12 @@
33433343
\begin{itemdescr}
33443344
\pnum
33453345
\constraints
3346-
The expression \tcode{x.current > y.current} shall be valid and
3346+
The expression \tcode{x.base() > y.base()} shall be valid and
33473347
convertible to \tcode{bool}.
33483348

33493349
\pnum
33503350
\returns
3351-
\tcode{x.current > y.current}.
3351+
\tcode{x.base() > y.base()}.
33523352
\end{itemdescr}
33533353

33543354
\indexlibrarymember{operator>}{reverse_iterator}%
@@ -3362,12 +3362,12 @@
33623362
\begin{itemdescr}
33633363
\pnum
33643364
\constraints
3365-
The expression \tcode{x.current < y.current} shall be valid and
3365+
The expression \tcode{x.base() < y.base()} shall be valid and
33663366
convertible to \tcode{bool}.
33673367

33683368
\pnum
33693369
\returns
3370-
\tcode{x.current < y.current}.
3370+
\tcode{x.base() < y.base()}.
33713371
\end{itemdescr}
33723372

33733373
\indexlibrarymember{operator<=}{reverse_iterator}%
@@ -3381,12 +3381,12 @@
33813381
\begin{itemdescr}
33823382
\pnum
33833383
\constraints
3384-
The expression \tcode{x.current >= y.current} shall be valid and
3384+
The expression \tcode{x.base() >= y.base()} shall be valid and
33853385
convertible to \tcode{bool}.
33863386

33873387
\pnum
33883388
\returns
3389-
\tcode{x.current >= y.current}.
3389+
\tcode{x.base() >= y.base()}.
33903390
\end{itemdescr}
33913391

33923392
\indexlibrarymember{operator>=}{reverse_iterator}%
@@ -3400,12 +3400,12 @@
34003400
\begin{itemdescr}
34013401
\pnum
34023402
\constraints
3403-
The expression \tcode{x.current <= y.current} shall be valid and
3403+
The expression \tcode{x.base() <= y.base()} shall be valid and
34043404
convertible to \tcode{bool}.
34053405

34063406
\pnum
34073407
\returns
3408-
\tcode{x.current <= y.current}.
3408+
\tcode{x.base() <= y.base()}.
34093409
\end{itemdescr}
34103410

34113411
\rSec3[reverse.iter.nonmember]{Non-member functions}
@@ -3421,7 +3421,7 @@
34213421
\begin{itemdescr}
34223422
\pnum
34233423
\returns
3424-
\tcode{y.current - x.current}.
3424+
\tcode{y.base() - x.base()}.
34253425
\end{itemdescr}
34263426

34273427
\indexlibrarymember{operator+}{reverse_iterator}%
@@ -3435,7 +3435,7 @@
34353435
\begin{itemdescr}
34363436
\pnum
34373437
\returns
3438-
\tcode{reverse_iterator<Iterator>(x.current - n)}.
3438+
\tcode{reverse_iterator<Iterator>(x.base() - n)}.
34393439
\end{itemdescr}
34403440

34413441
\indexlibrarymember{iter_move}{reverse_iterator}%
@@ -3448,7 +3448,7 @@
34483448
\pnum
34493449
\effects Equivalent to:
34503450
\begin{codeblock}
3451-
auto tmp = i.current;
3451+
auto tmp = i.base();
34523452
return ranges::iter_move(--tmp);
34533453
\end{codeblock}
34543454

@@ -3472,8 +3472,8 @@
34723472
\pnum
34733473
\effects Equivalent to:
34743474
\begin{codeblock}
3475-
auto xtmp = x.current;
3476-
auto ytmp = y.current;
3475+
auto xtmp = x.base();
3476+
auto ytmp = y.base();
34773477
ranges::iter_swap(--xtmp, --ytmp);
34783478
\end{codeblock}
34793479

0 commit comments

Comments
 (0)