File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 227
227
228
228
\definition {expression-equivalent}{defns.expression-equivalent}
229
229
\indexdefn {expression-equivalent}%
230
- relationship that exists between two expressions \tcode {E1} and \tcode {E2} such
231
- that
232
- \begin {itemize }
233
- \item \tcode {E1} and \tcode {E2} have the same effects,
234
-
235
- \item \tcode {noexcept(E1) == noexcept(E2)}, and
230
+ expressions that all have the same effects,
231
+ either
232
+ are all potentially-throwing\iref {except.spec } or
233
+ are all not potentially-throwing,
234
+ and
235
+ either
236
+ are all constant subexpressions or
237
+ are all not constant subexpressions
236
238
237
- \item \tcode {E1} is a constant subexpression if and only if \tcode {E2} is a
238
- constant subexpression
239
- \end {itemize }
239
+ \begin {example }
240
+ For a value \tcode {x} of type \tcode {int}
241
+ and a function \tcode {f} that accepts integer arguments,
242
+ the expressions
243
+ \tcode {f(x + 2)},
244
+ \tcode {f(2 + x)},
245
+ and
246
+ \tcode {f(1 + x + 1)}
247
+ are expression-equivalent.
248
+ \end {example }
240
249
241
250
\definition {handler function}{defns.handler}
242
251
\indexdefn {function!handler}%
You can’t perform that action at this time.
0 commit comments