Skip to content

Commit

Permalink
[defns.valid] Elaborate on cause in example and add cross-references
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenwave committed Nov 2, 2024
1 parent a470ff8 commit 5d13e8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,10 @@
met and operations on the object behave as specified for its type

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

0 comments on commit 5d13e8b

Please sign in to comment.