|
592 | 592 | The stack will have been unwound at that point.
|
593 | 593 | \end{note}
|
594 | 594 | Also, an implicit handler is considered active when
|
595 |
| -\tcode{std::terminate()} |
| 595 | +\tcode{std::terminate} |
596 | 596 | is entered due to a throw. A handler is no longer considered active when the
|
597 | 597 | catch clause exits.
|
598 | 598 |
|
|
605 | 605 | \pnum
|
606 | 606 | If no matching handler is found,
|
607 | 607 | the function
|
608 |
| -\tcode{std::terminate()} |
| 608 | +\tcode{std::terminate} |
609 | 609 | is called;
|
610 | 610 | whether or not the stack is unwound before this call to
|
611 |
| -\tcode{std::terminate()} |
| 611 | +\tcode{std::terminate} |
612 | 612 | is \impldef{stack unwinding before call to
|
613 |
| -\tcode{std::terminate()}}\iref{except.terminate}. |
| 613 | +\tcode{std::terminate}}\iref{except.terminate}. |
614 | 614 |
|
615 | 615 | \pnum
|
616 | 616 | Referring to any non-static member or base class of an object
|
|
787 | 787 | and the search for a handler\iref{except.handle}
|
788 | 788 | encounters the outermost block of a function with a
|
789 | 789 | non-throwing exception specification,
|
790 |
| -the function \tcode{std::terminate()} is called\iref{except.terminate}. |
| 790 | +the function \tcode{std::terminate} is called\iref{except.terminate}. |
791 | 791 | \begin{note}
|
792 | 792 | An implementation shall not reject an expression merely because, when
|
793 | 793 | executed, it throws or might
|
|
874 | 874 | their exception specifications do not contribute
|
875 | 875 | to the exception specification of the constructor,
|
876 | 876 | because an exception thrown from such a destructor
|
877 |
| -would call \tcode{std::terminate} |
| 877 | +would call \tcode{std::terminate()} |
878 | 878 | rather than escape the constructor~(\ref{except.throw}, \ref{except.terminate}).
|
879 | 879 | \end{note}
|
880 | 880 |
|
|
978 | 978 | \rSec1[except.special]{Special functions}
|
979 | 979 |
|
980 | 980 | \pnum
|
981 |
| -The function \tcode{std::terminate()}\iref{except.terminate} |
| 981 | +The function \tcode{std::terminate}\iref{except.terminate} |
982 | 982 | is used by the exception
|
983 | 983 | handling mechanism for coping with errors related to the exception handling
|
984 | 984 | mechanism itself. The function
|
985 | 985 | \tcode{std::current_exception()}\iref{propagation} and the class
|
986 | 986 | \tcode{std::nested_exception}\iref{except.nested} can be used by a program to
|
987 | 987 | capture the currently handled exception.
|
988 | 988 |
|
989 |
| -\rSec2[except.terminate]{The \tcode{std::terminate()} function} |
| 989 | +\rSec2[except.terminate]{The \tcode{std::terminate} function} |
990 | 990 |
|
991 | 991 | \pnum
|
992 | 992 | \indextext{\idxcode{terminate}}%
|
|
1065 | 1065 | \pnum
|
1066 | 1066 | \indextext{\idxcode{terminate}}%
|
1067 | 1067 | In such cases,
|
1068 |
| -\tcode{std::terminate()} |
| 1068 | +\tcode{std::terminate} |
1069 | 1069 | is called\iref{exception.terminate}.
|
1070 | 1070 | In the situation where no matching handler is found, it is
|
1071 |
| -\impldef{stack unwinding before call to \tcode{std::terminate()}} whether or not the |
| 1071 | +\impldef{stack unwinding before call to \tcode{std::terminate}} whether or not the |
1072 | 1072 | stack is unwound
|
1073 | 1073 | before
|
1074 |
| -\tcode{std::terminate()} |
| 1074 | +\tcode{std::terminate} |
1075 | 1075 | is called.
|
1076 | 1076 | In the situation where the search for a handler\iref{except.handle} encounters the
|
1077 | 1077 | outermost block of a function
|
|
1082 | 1082 | whether the stack is unwound, unwound partially, or not unwound at all
|
1083 | 1083 | before \tcode{std::terminate()} is called.
|
1084 | 1084 | In all other situations, the stack shall not be unwound before
|
1085 |
| -\tcode{std::terminate()} |
| 1085 | +\tcode{std::terminate} |
1086 | 1086 | is called.
|
1087 | 1087 | An implementation is not permitted to finish stack unwinding
|
1088 | 1088 | prematurely based on a determination that the unwind process
|
1089 | 1089 | will eventually cause a call to
|
1090 |
| -\tcode{std::terminate()}. |
| 1090 | +\tcode{std::terminate}. |
1091 | 1091 |
|
1092 | 1092 | \rSec2[except.uncaught]{The \tcode{std::uncaught_exceptions()} function}%
|
1093 | 1093 | \indexlibrary{\idxcode{uncaught_exceptions}}
|
|
0 commit comments