7
Expressions
[expr]
7.6
Compound expressions
[expr.compound]
7.6.2
Unary expressions
[expr.unary]
7.6.2.7
noexcept
operator
[expr.unary.noexcept]
noexcept-expression
:
noexcept
(
expression
)
1
#
The operand of the
noexcept
operator is an unevaluated operand (
[expr.
context]
)
.
If the operand is a prvalue, the temporary materialization conversion (
[conv.
rval]
) is applied
.
2
#
The result of the
noexcept
operator is a prvalue of type
bool
.
The result is
false
if the full-expression of the operand is potentially-throwing (
[except.
spec]
), and
true
otherwise
.
[
Note
1
:
A
noexcept-expression
is an integral constant expression (
[expr.
const]
)
.
—
end note
]