Skip to content

Commit 05f51e0

Browse files
CaseyCarterzygoloid
authored andcommitted
[iterator.operations] Simplify distance requirements; change to expects
1 parent 90bb6f5 commit 05f51e0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

source/iterators.tex

+7-9
Original file line numberDiff line numberDiff line change
@@ -2592,6 +2592,13 @@
25922592
\end{itemdecl}
25932593

25942594
\begin{itemdescr}
2595+
\pnum
2596+
\expects
2597+
\tcode{last} is reachable from \tcode{first}, or
2598+
\tcode{InputIterator} meets
2599+
the \oldconcept{RandomAccessIterator} requirements and
2600+
\tcode{first} is reachable from \tcode{last}.
2601+
25952602
\pnum
25962603
\effects
25972604
If \tcode{InputIterator} meets the \oldconcept{RandomAccessIterator} requirements,
@@ -2600,15 +2607,6 @@
26002607
\tcode{first}
26012608
to
26022609
\tcode{last}.
2603-
2604-
\pnum
2605-
\requires
2606-
If \tcode{InputIterator} meets the \oldconcept{RandomAccessIterator} requirements,
2607-
\tcode{last} shall be reachable from \tcode{first} or \tcode{first} shall be
2608-
reachable from \tcode{last}; otherwise,
2609-
\tcode{last}
2610-
shall be reachable from
2611-
\tcode{first}.
26122610
\end{itemdescr}
26132611

26142612
\indexlibrary{\idxcode{next}}%

0 commit comments

Comments
 (0)