Public Member Functions | Protected Attributes | List of all members
std::bad_alloc Class Reference
Inheritance diagram for std::bad_alloc:

Public Member Functions

 bad_alloc (size_t nBytes=0) noexcept
 Initializes the empty object. nBytes is the size of the attempted allocation.
virtual const char * what (void) const noexcept override
virtual void info (ustl::string &msgbuf, const char *fmt=nullptr) const noexcept override
 Returns a descriptive error message. fmt="failed to allocate %d bytes".
virtual void read (ustl::istream &is) override
 Reads the exception from stream is.
virtual void write (ustl::ostream &os) const override
 Writes the exception into stream os.
virtual size_t stream_size (void) const noexcept override
 Returns the size of the written exception.
- Public Member Functions inherited from ustl::exception
void text_write (ostringstream &os) const noexcept
 Writes the exception as text into stream os.
xfmt_t format (void) const
rcbktrace_t backtrace (void) const

Protected Attributes

size_t _bytesRequested
 Number of bytes requested by the failed allocation.

Additional Inherited Members

- Public Types inherited from ustl::exception
typedef const CBacktracercbktrace_t
- Protected Member Functions inherited from ustl::exception
void set_format (xfmt_t fmt)

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

Generated on Mon Sep 28 2015 17:58:50 for uSTL by Doxygen 1.8.10