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

Public Member Functions

__CLR_OR_THIS_CALL bad_alloc () _THROW0()
 
virtual __CLR_OR_THIS_CALL ~bad_alloc () _NOEXCEPT
 
- Public Member Functions inherited from exception
__CLR_OR_THIS_CALL exception (const char *_Message="unknown", int x=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 __CLR_OR_THIS_CALL _Doraise () const
 

Private Member Functions

__CLR_OR_THIS_CALL bad_alloc (const char *_Message) _THROW0()
 

Friends

class bad_array_new_length
 

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

__CLR_OR_THIS_CALL bad_alloc::bad_alloc ( )
inline
164  : exception("bad allocation", 1)
165  { // construct from message string with no memory allocation
166  }
__CLR_OR_THIS_CALL exception(const char *_Message="unknown", int x=1) _THROW0()
Definition: exception:93
virtual __CLR_OR_THIS_CALL bad_alloc::~bad_alloc ( )
inlinevirtual
169  { // destroy the object
170  }
__CLR_OR_THIS_CALL bad_alloc::bad_alloc ( const char *  _Message)
inlineprivate
176  : exception(_Message, 1)
177  { // construct from message string with no memory allocation
178  }
__CLR_OR_THIS_CALL exception(const char *_Message="unknown", int x=1) _THROW0()
Definition: exception:93

Member Function Documentation

virtual void __CLR_OR_THIS_CALL bad_alloc::_Doraise ( ) const
inlineprotectedvirtual

Reimplemented from exception.

182  { // perform class-specific exception handling
183  _RAISE(*this);
184  }
#define _RAISE(x)
Definition: xstddef:70

Friends And Related Function Documentation

friend class bad_array_new_length
friend

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