tmp/tmpicvr54sv/{from.md → to.md}
RENAMED
|
@@ -1,27 +1,26 @@
|
|
| 1 |
#### Handler functions <a id="handler.functions">[[handler.functions]]</a>
|
| 2 |
|
| 3 |
-
The C++standard library provides default
|
| 4 |
-
handler
|
| 5 |
|
| 6 |
-
- `unexpected_handler`
|
| 7 |
- `terminate_handler`
|
| 8 |
|
| 9 |
A C++program may install different handler functions during execution,
|
| 10 |
by supplying a pointer to a function defined in the program or the
|
| 11 |
library as an argument to (respectively):
|
| 12 |
|
| 13 |
- `set_new_handler`
|
| 14 |
-
- `
|
| 15 |
-
|
| 16 |
-
|
|
|
|
| 17 |
|
| 18 |
A C++program can get a pointer to the current handler function by
|
| 19 |
calling the following functions:
|
| 20 |
|
| 21 |
- `get_new_handler`
|
| 22 |
-
- `get_unexpected`
|
| 23 |
- `get_terminate`
|
| 24 |
|
| 25 |
Calling the `set_*` and `get_*` functions shall not incur a data race. A
|
| 26 |
call to any of the `set_*` functions shall synchronize with subsequent
|
| 27 |
calls to the same `set_*` function and to the corresponding `get_*`
|
|
|
|
| 1 |
#### Handler functions <a id="handler.functions">[[handler.functions]]</a>
|
| 2 |
|
| 3 |
+
The C++standard library provides a default version of the following
|
| 4 |
+
handler function (Clause [[language.support]]):
|
| 5 |
|
|
|
|
| 6 |
- `terminate_handler`
|
| 7 |
|
| 8 |
A C++program may install different handler functions during execution,
|
| 9 |
by supplying a pointer to a function defined in the program or the
|
| 10 |
library as an argument to (respectively):
|
| 11 |
|
| 12 |
- `set_new_handler`
|
| 13 |
+
- `set_terminate`
|
| 14 |
+
|
| 15 |
+
See also subclauses [[alloc.errors]], Storage allocation errors, and
|
| 16 |
+
[[support.exception]], Exception handling.
|
| 17 |
|
| 18 |
A C++program can get a pointer to the current handler function by
|
| 19 |
calling the following functions:
|
| 20 |
|
| 21 |
- `get_new_handler`
|
|
|
|
| 22 |
- `get_terminate`
|
| 23 |
|
| 24 |
Calling the `set_*` and `get_*` functions shall not incur a data race. A
|
| 25 |
call to any of the `set_*` functions shall synchronize with subsequent
|
| 26 |
calls to the same `set_*` function and to the corresponding `get_*`
|