STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Typedefs | Functions
eh.h File Reference
#include <crtdefs.h>

Go to the source code of this file.

Macros

#define _INC_EH
 

Typedefs

typedef void(__cdecl * terminate_function) ()
 
typedef void(__cdecl * terminate_handler) ()
 
typedef void(__cdecl * unexpected_function) ()
 
typedef void(__cdecl * unexpected_handler) ()
 
typedef struct _EXCEPTION_POINTERS *_CRTIMP __declspec(noreturn) void __cdecl terminate(void) = { nullptr, 0 }
 

Functions

typedef void (__cdecl *_se_translator_function)(unsigned int
 
_CRTIMP __declspec (noreturn) void __cdecl unexpected(void)
 Cancels the currently executing task. This function can be called from within the body of a task to abort the task's execution and cause it to enter the canceled state. While it may be used in response to the is_task_cancellation_requested function, you may also use it by itself, to initiate cancellation of the task that is currently executing. More...
 
_CRTIMP int __cdecl _is_exception_typeof (_In_ const type_info &_Type, _In_ struct _EXCEPTION_POINTERS *_ExceptionPtr)
 
_CRTIMP terminate_function __cdecl set_terminate (_In_opt_ terminate_function _NewPtFunc)
 
_CRTIMP terminate_function __cdecl _get_terminate (void)
 
_CRTIMP unexpected_function __cdecl set_unexpected (_In_opt_ unexpected_function _NewPtFunc)
 
_CRTIMP unexpected_function __cdecl _get_unexpected (void)
 
_CRTIMP _se_translator_function __cdecl _set_se_translator (_In_opt_ _se_translator_function _NewPtFunc)
 
_CRTIMP bool __cdecl __uncaught_exception ()
 

Macro Definition Documentation

#define _INC_EH

Typedef Documentation

__declspec = { nullptr, 0 }
inline
typedef void(__cdecl * terminate_function) ()
typedef void(__cdecl * terminate_handler) ()
typedef void(__cdecl * unexpected_function) ()
typedef void(__cdecl * unexpected_handler) ()

Function Documentation

_CRTIMP __declspec ( noreturn  )
inline

Cancels the currently executing task. This function can be called from within the body of a task to abort the task's execution and cause it to enter the canceled state. While it may be used in response to the is_task_cancellation_requested function, you may also use it by itself, to initiate cancellation of the task that is currently executing.

It is not a supported scenario to call this function if you are not within the body of a task. Doing so will result in undefined behavior such as a crash or a hang in your application.

See also
task Class
204 {
205  throw task_canceled();
206 }
_CRTIMP bool __cdecl __uncaught_exception ( )
_CRTIMP terminate_function __cdecl _get_terminate ( void  )
_CRTIMP unexpected_function __cdecl _get_unexpected ( void  )
_CRTIMP int __cdecl _is_exception_typeof ( _In_ const type_info _Type,
_In_ struct _EXCEPTION_POINTERS *  _ExceptionPtr 
)
_CRTIMP _se_translator_function __cdecl _set_se_translator ( _In_opt_ _se_translator_function  _NewPtFunc)
_CRTIMP terminate_function __cdecl set_terminate ( _In_opt_ terminate_function  _NewPtFunc)
_CRTIMP unexpected_function __cdecl set_unexpected ( _In_opt_ unexpected_function  _NewPtFunc)
_STDEXT_END _STD_BEGIN typedef void ( __cdecl *  _se_translator_function)