Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::bad_alloc — Base class for memory allocation errors.
// In header: <boost/log/exceptions.hpp> class bad_alloc : public bad_alloc { public: // public member functions explicit bad_alloc(const char *); explicit bad_alloc(std::string const &); ~bad_alloc(); const char * what() const; };
Exceptions derived from this class indicate problems with memory allocation.
bad_alloc public member functionsexplicit bad_alloc(const char * descr);
Initializing constructor. Creates an exception with the specified error message.
explicit bad_alloc(std::string const & descr);
Initializing constructor. Creates an exception with the specified error message.
~bad_alloc();
Destructor
const char * what() const;
Error message accessor.