|
3002 | 3002 |
|
3003 | 3003 | \pnum
|
3004 | 3004 | \indextext{restriction}%
|
3005 |
| -Violation of any preconditions specified in a function's |
3006 |
| -\requires |
3007 |
| -element results in undefined behavior unless the function's |
3008 |
| -\throws |
3009 |
| -element specifies throwing an exception when the precondition is violated. |
| 3005 | +Violation of any preconditions specified in a function's \requires element |
| 3006 | +results in undefined behavior |
| 3007 | +unless the function's \throws element |
| 3008 | +specifies throwing an exception when the precondition is violated. |
3010 | 3009 |
|
3011 | 3010 | \pnum
|
3012 |
| -Violation of any preconditions specified |
3013 |
| -in a function's \expects element |
| 3011 | +Violation of any preconditions specified in a function's \expects element |
3014 | 3012 | results in undefined behavior.
|
3015 | 3013 |
|
3016 | 3014 | \rSec3[res.on.requirements]{Semantic requirements}
|
|
3304 | 3302 | \pnum
|
3305 | 3303 | Any of the functions defined in the \Cpp{} standard library
|
3306 | 3304 | \indextext{library!C++ standard}%
|
3307 |
| -can report a failure by throwing an exception of a type described in its |
3308 |
| -\throws |
3309 |
| -paragraph, |
3310 |
| -or of a type derived from a type named in the |
3311 |
| -\throws |
3312 |
| -paragraph |
3313 |
| -that would be caught by |
3314 |
| -an exception handler |
3315 |
| -for the base type. |
| 3305 | +can report a failure by throwing an exception of a type |
| 3306 | +described in its \throws paragraph, |
| 3307 | +or of a type derived from a type named in the \throws paragraph |
| 3308 | +that would be caught by an exception handler for the base type. |
3316 | 3309 |
|
3317 | 3310 | \pnum
|
3318 | 3311 | Functions from the C standard library shall not throw exceptions%
|
|
3337 | 3330 | Functions defined in the
|
3338 | 3331 | \Cpp{} standard library
|
3339 | 3332 | \indextext{specifications!C++}%
|
3340 |
| -that do not have a |
3341 |
| -\throws |
3342 |
| -paragraph |
3343 |
| -but do have a potentially-throwing |
3344 |
| -exception specification |
| 3333 | +that do not have a \throws paragraph |
| 3334 | +but do have a potentially-throwing exception specification |
3345 | 3335 | may throw \impldef{exceptions thrown by standard library functions that have a
|
3346 | 3336 | potentially-throwing exception specification} exceptions.%
|
3347 | 3337 | \footnote{In particular, they
|
|
0 commit comments