Skip to content

Commit 894e688

Browse files
committed
[defns.valid] Elaborate on cause in example and add cross-references
1 parent a470ff8 commit 894e688

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/intro.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,10 @@
665665
met and operations on the object behave as specified for its type
666666

667667
\begin{example}
668-
If an object \tcode{x} of type \tcode{std::vector<int>} is in a
669-
valid but unspecified state, \tcode{x.empty()} can be called unconditionally,
668+
If an object \tcode{x} of type \tcode{std::vector<int>} enters a
669+
valid but unspecified state through say,
670+
a move operation\iref{lib.types.movedfrom,class.copy.ctor,class.copy.assign},
671+
\tcode{x.empty()} can be called unconditionally,
670672
and \tcode{x.front()} can be called only if \tcode{x.empty()} returns
671673
\tcode{false}.
672674
\end{example}

0 commit comments

Comments
 (0)