Throw std::bad_alloc if exceptions are enabled or abort the program otherwise. Derived classes and helper functions will typically call this function when they are unable to satisfy an allocation request. This function never returns.

Synopsis

Declared in <bslma_allocator.h>

static
void
throwBadAlloc();

Description

DEPRECATED: Use bsls::BslExceptionUtil::throwBadAlloc instead.

Created with MrDocs