#include <ustl.h>
Inheritance diagram for ustl::bad_alloc:

Public Member Functions | |
| bad_alloc (size_t nBytes=0) throw () | |
Initializes the empty object. nBytes is the size of the attempted allocation. | |
| virtual const char * | what (void) const throw () |
| Returns the name of the exception. | |
| virtual void | info (string &msgbuf, const char *fmt=NULL) const throw () |
| Returns a descriptive error message. fmt="Failed to allocate d bytes". | |
| virtual void | read (istream &is) |
Reads the exception from stream is. | |
| virtual void | write (ostream &os) const |
Writes the exception into stream os. | |
| virtual size_t | stream_size (void) const |
| Returns the size of the written exception. | |
Protected Attributes | |
| size_t | m_nBytesRequested |
| Number of bytes requested by the failed allocation. | |