Skip to content

[expr.unary.noexcept] Replace informative wording #6539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5042,28 +5042,27 @@
\pnum
\indextext{\idxcode{noexcept}}%
\indextext{expression!\idxcode{noexcept}}%
The \keyword{noexcept} operator determines whether the evaluation of its operand,
which is an unevaluated operand\iref{term.unevaluated.operand}, can throw an
exception\iref{except.throw}.

The \keyword{noexcept} operator
\begin{bnf}
\nontermdef{noexcept-expression}\br
\keyword{noexcept} \terminal{(} expression \terminal{)}
\end{bnf}

\pnum
The result of the \keyword{noexcept} operator is a prvalue of type \keyword{bool}.
has an \grammarterm{expression} \term{operand}
which is an unevaluated operand\iref{term.unevaluated.operand}.
The \keyword{noexcept} operator yields \keyword{true}
unless the full-expression of the operand
is potentially-throwing\iref{except.spec}.
\begin{note}
A \grammarterm{noexcept-expression}
is an integral constant expression\iref{expr.const}.
\end{note}

\pnum
The result of the \keyword{noexcept} operator is a prvalue of type \keyword{bool}.

\pnum
If the operand is a prvalue,
the temporary materialization conversion\iref{conv.rval} is applied.
The result of the \keyword{noexcept} operator is \keyword{true}
unless the full-expression of the operand
is potentially-throwing\iref{except.spec}.
\indextext{expression!unary|)}

\rSec3[expr.new]{New}
Expand Down