![]() |
bad_alloc |
Type of the exceptions thrown by the standard definitions of operator new and operator new[] when they fail to allocate the requested storage space.
This class is derived from exception. See the exception class for the member definitions of standard exceptions.
Its member what returns a null-terminated character sequence identifying the exception.
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Possible output:
bad_alloc caught: bad allocation |
See also
| exception | Standard exception class (class) |

