From Jason Turner

[exception.terminate]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpkz_e7ywy/{from.md → to.md} +13 -9
tmp/tmpkz_e7ywy/{from.md → to.md} RENAMED
@@ -1,11 +1,11 @@
1
  ### Abnormal termination <a id="exception.terminate">[[exception.terminate]]</a>
2
 
3
  #### Type `terminate_handler` <a id="terminate.handler">[[terminate.handler]]</a>
4
 
5
  ``` cpp
6
- typedef void (*terminate_handler)();
7
  ```
8
 
9
  The type of a *handler function* to be called by `std::terminate()` when
10
  terminating exception processing.
11
 
@@ -33,23 +33,27 @@ default `terminate_handler`.
33
 
34
  ``` cpp
35
  terminate_handler get_terminate() noexcept;
36
  ```
37
 
38
- *Returns:* The current `terminate_handler`. This may be a null pointer
39
- value.
 
40
 
41
  #### `terminate` <a id="terminate">[[terminate]]</a>
42
 
43
  ``` cpp
44
  [[noreturn]] void terminate() noexcept;
45
  ```
46
 
47
  *Remarks:* Called by the implementation when exception handling must be
48
- abandoned for any of several reasons ([[except.terminate]]), in effect
49
- immediately after throwing the exception. May also be called directly by
50
- the program.
51
 
52
- *Effects:* Calls the current `terminate_handler` function. A default
53
- `terminate_handler` is always considered a callable handler in this
54
- context.
 
 
 
 
55
 
 
1
  ### Abnormal termination <a id="exception.terminate">[[exception.terminate]]</a>
2
 
3
  #### Type `terminate_handler` <a id="terminate.handler">[[terminate.handler]]</a>
4
 
5
  ``` cpp
6
+ using terminate_handler = void (*)();
7
  ```
8
 
9
  The type of a *handler function* to be called by `std::terminate()` when
10
  terminating exception processing.
11
 
 
33
 
34
  ``` cpp
35
  terminate_handler get_terminate() noexcept;
36
  ```
37
 
38
+ *Returns:* The current `terminate_handler`.
39
+
40
+ [*Note 1*: This may be a null pointer value. — *end note*]
41
 
42
  #### `terminate` <a id="terminate">[[terminate]]</a>
43
 
44
  ``` cpp
45
  [[noreturn]] void terminate() noexcept;
46
  ```
47
 
48
  *Remarks:* Called by the implementation when exception handling must be
49
+ abandoned for any of several reasons ([[except.terminate]]). May also
50
+ be called directly by the program.
 
51
 
52
+ *Effects:* Calls a `terminate_handler` function. It is unspecified which
53
+ `terminate_handler` function will be called if an exception is active
54
+ during a call to `set_terminate`. Otherwise calls the current
55
+ `terminate_handler` function.
56
+
57
+ [*Note 1*: A default `terminate_handler` is always considered a
58
+ callable handler in this context. — *end note*]
59