Skip to content

Commit ebdea19

Browse files
burblebeetkoeppe
authored andcommitted
LWG3472 counted_iterator is missing preconditions
[iterators.counted] Add "is true" for expressions in preconditions.
1 parent 01f3fd7 commit ebdea19

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/iterators.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5338,6 +5338,10 @@
53385338
\end{itemdecl}
53395339

53405340
\begin{itemdescr}
5341+
\pnum
5342+
\expects
5343+
\tcode{length > 0} is \tcode{true}.
5344+
53415345
\pnum
53425346
\effects
53435347
Equivalent to: \tcode{return *current;}
@@ -5641,6 +5645,10 @@
56415645
\end{itemdecl}
56425646

56435647
\begin{itemdescr}
5648+
\pnum
5649+
\expects
5650+
\tcode{i.length > 0} is \tcode{true}.
5651+
56445652
\pnum
56455653
\effects
56465654
Equivalent to: \tcode{return ranges::iter_move(i.current);}
@@ -5655,6 +5663,10 @@
56555663
\end{itemdecl}
56565664

56575665
\begin{itemdescr}
5666+
\pnum
5667+
\expects
5668+
Both \tcode{x.length > 0} and \tcode{y.length > 0} are \tcode{true}.
5669+
56585670
\pnum
56595671
\effects
56605672
Equivalent to \tcode{ranges::iter_swap(x.current, y.current)}.

0 commit comments

Comments
 (0)