STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Typedefs | Functions | Variables
exception File Reference
#include <xstddef>

Classes

class  exception
 
class  bad_exception
 
class  bad_alloc
 
class  bad_array_new_length
 
class  exception_ptr
 

Macros

#define _EXCEPTION_
 
#define _USE_EXCEPTION   using _STDEXT exception;
 
#define _USE_BAD_EXCEPTION
 
#define _USE_EX
 

Typedefs

typedef void(__cdecl * unexpected_handler) ()
 

Functions

_STDEXT_END _STD_BEGIN _USE_EXCEPTION typedef void (__cdecl *_Prhand)(const exception &)
 
terminate_handler __CRTDECL set_terminate (terminate_handler) _THROW0()
 
unexpected_handler __CRTDECL set_unexpected (unexpected_handler) _THROW0()
 
void __CRTDECL terminate ()
 
void __CRTDECL unexpected ()
 
_CRTIMP2_PURE bool __CLRCALL_PURE_OR_CDECL uncaught_exception ()
 
terminate_handler __CRTDECL get_terminate ()
 
unexpected_handler __CRTDECL get_unexpected ()
 
_STDEXT_END _STD_BEGIN _USE_BAD_EXCEPTION _STD_END _CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrCreate (_Out_ void *)
 
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrDestroy (_Inout_ void *)
 
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrCopy (_Out_ void *, _In_ const void *)
 
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrAssign (_Inout_ void *, _In_ const void *)
 
_CRTIMP_PURE bool __CLRCALL_PURE_OR_CDECL __ExceptionPtrCompare (_In_ const void *, _In_ const void *)
 
_CRTIMP_PURE bool __CLRCALL_PURE_OR_CDECL __ExceptionPtrToBool (_In_ const void *)
 
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrSwap (_Inout_ void *, _Inout_ void *)
 
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrCurrentException (_Out_ void *)
 
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrRethrow (_In_ const void *)
 
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrCopyException (_Inout_ void *, _In_ const void *, _In_ const void *)
 
void swap (exception_ptr &_Lhs, exception_ptr &_Rhs)
 
bool operator== (const exception_ptr &_Lhs, const exception_ptr &_Rhs)
 
bool operator== (nullptr_t, const exception_ptr &_Rhs)
 
bool operator== (const exception_ptr &_Lhs, nullptr_t)
 
bool operator!= (const exception_ptr &_Lhs, const exception_ptr &_Rhs)
 
bool operator!= (nullptr_t _Lhs, const exception_ptr &_Rhs)
 
bool operator!= (const exception_ptr &_Lhs, nullptr_t _Rhs)
 
exception_ptr current_exception ()
 
void rethrow_exception (_In_ exception_ptr _P)
 
template<class _E >
void__GetExceptionInfo (_E)
 
template<class _E >
exception_ptr make_exception_ptr (_E _Except)
 

Variables

_CRTIMP2_NCEEPURE _Prhand _Raise_handler
 

Macro Definition Documentation

#define _EXCEPTION_
#define _USE_BAD_EXCEPTION
Value:
using _STDEXT bad_alloc; \
using _STDEXT bad_exception;
Definition: exception:358
Definition: exception:334
#define _USE_EX
Value:
void(__cdecl * terminate_handler)()
Definition: eh.h:33
void __CRTDECL unexpected()
Definition: exception:307
void __CRTDECL terminate()
Definition: exception:303
void(__cdecl * unexpected_handler)()
Definition: exception:288
unexpected_handler __CRTDECL set_unexpected(unexpected_handler) _THROW0()
Definition: exception:297
terminate_handler __CRTDECL set_terminate(terminate_handler) _THROW0()
Definition: exception:291
#define _USE_EXCEPTION   using _STDEXT exception;

Typedef Documentation

typedef void(__cdecl * unexpected_handler) ()

Function Documentation

_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrAssign ( _Inout_ void ,
_In_ const void  
)
_CRTIMP_PURE bool __CLRCALL_PURE_OR_CDECL __ExceptionPtrCompare ( _In_ const void ,
_In_ const void  
)
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrCopy ( _Out_ void ,
_In_ const void  
)
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrCopyException ( _Inout_ void ,
_In_ const void ,
_In_ const void  
)
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrCurrentException ( _Out_ void )
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrDestroy ( _Inout_ void )
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrRethrow ( _In_ const void )
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrSwap ( _Inout_ void ,
_Inout_ void  
)
_CRTIMP_PURE bool __CLRCALL_PURE_OR_CDECL __ExceptionPtrToBool ( _In_ const void )
template<class _E >
void* __GetExceptionInfo ( _E  )
exception_ptr current_exception ( )
inline
528  {
530  }
static exception_ptr _Current_exception()
Definition: exception:470
terminate_handler __CRTDECL get_terminate ( )
inline
314  { // get current terminate handler
315  return (0);
316  }
unexpected_handler __CRTDECL get_unexpected ( )
inline
319  { // get current unexpected handler
320  return (0);
321  }
template<class _E >
exception_ptr make_exception_ptr ( _E  _Except)
540  {
542  }
void * __GetExceptionInfo(_E)
static exception_ptr _Copy_exception(_In_ void *_Except, _In_ const void *_Ptr)
Definition: exception:476
_Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:91
bool operator!= ( const exception_ptr _Lhs,
const exception_ptr _Rhs 
)
inline
513  {
514  return !(_Lhs == _Rhs);
515  }
bool operator!= ( nullptr_t  _Lhs,
const exception_ptr _Rhs 
)
inline
518  {
519  return !(_Lhs == _Rhs);
520  }
bool operator!= ( const exception_ptr _Lhs,
nullptr_t  _Rhs 
)
inline
523  {
524  return !(_Lhs == _Rhs);
525  }
bool operator== ( const exception_ptr _Lhs,
const exception_ptr _Rhs 
)
inline
498  {
499  return __ExceptionPtrCompare(&_Lhs, &_Rhs);
500  }
_CRTIMP_PURE bool __CLRCALL_PURE_OR_CDECL __ExceptionPtrCompare(_In_ const void *, _In_ const void *)
bool operator== ( nullptr_t  ,
const exception_ptr _Rhs 
)
inline
503  {
504  return !_Rhs;
505  }
bool operator== ( const exception_ptr _Lhs,
nullptr_t   
)
inline
508  {
509  return !_Lhs;
510  }
void rethrow_exception ( _In_ exception_ptr  _P)
inline
533  {
534  _P._RethrowException();
535  }
terminate_handler __CRTDECL set_terminate ( terminate_handler  )
inline
293  { // register a terminate handler
294  return 0;
295  }
unexpected_handler __CRTDECL set_unexpected ( unexpected_handler  )
inline
299  { // register an unexpected handler
300  return 0;
301  }
void swap ( exception_ptr _Lhs,
exception_ptr _Rhs 
)
inline
493  {
494  __ExceptionPtrSwap(&_Lhs, &_Rhs);
495  }
_CRTIMP_PURE void __CLRCALL_PURE_OR_CDECL __ExceptionPtrSwap(_Inout_ void *, _Inout_ void *)
void __CRTDECL terminate ( )
inline
304  { // handle exception termination
305  }
_CRTIMP2_PURE bool __CLRCALL_PURE_OR_CDECL uncaught_exception ( )
void __CRTDECL unexpected ( )
inline
308  { // handle unexpected exception
309  }
_STDEXT_END _STD_BEGIN _USE_EXCEPTION typedef void ( __cdecl *  _Prhand) const

Variable Documentation

_CRTIMP2_NCEEPURE _Prhand _Raise_handler