STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
bad_cast Class Reference
Inheritance diagram for bad_cast:
exception bad_any_cast

Public Member Functions

 bad_cast (const char *_Message="bad cast") _THROW0()
 
virtual ~bad_cast () _NOEXCEPT
 
- Public Member Functions inherited from exception
__CLR_OR_THIS_CALL exception (const char *_Message="unknown", int=1) _THROW0()
 
__CLR_OR_THIS_CALL exception (const exception &_Right) _THROW0()
 
exception &__CLR_OR_THIS_CALL operator= (const exception &_Right) _THROW0()
 
virtual __CLR_OR_THIS_CALL ~exception () _NOEXCEPT
 
virtual const char *__CLR_OR_THIS_CALL what () const _THROW0()
 
void __CLR_OR_THIS_CALL _Raise () const
 

Protected Member Functions

virtual void _Doraise () const
 

Additional Inherited Members

- Static Public Member Functions inherited from exception
static _STD _Prhand _Set_raise_handler (_STD _Prhand _Pnew)
 
- Protected Attributes inherited from exception
const char_Ptr
 

Constructor & Destructor Documentation

bad_cast::bad_cast ( const char _Message = "bad cast")
inline
48  : exception(_Message)
49  { // construct from message string
50  }
__CLR_OR_THIS_CALL exception(const char *_Message="unknown", int=1) _THROW0()
Definition: exception:94
virtual bad_cast::~bad_cast ( )
inlinevirtual
53  { // destroy the object
54  }

Member Function Documentation

virtual void bad_cast::_Doraise ( ) const
inlineprotectedvirtual

Reimplemented from exception.

58  { // perform class-specific exception handling
59  _RAISE(*this);
60  }
#define _RAISE(x)
Definition: xstddef:31

The documentation for this class was generated from the following file: