.TH "std::bad_alloc" 3 "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::bad_alloc \- Exception possibly thrown by \fRnew\fP\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBstd::exception\fP\&. .PP Inherited by std::bad_array_new_length\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBbad_alloc\fP (const \fBbad_alloc\fP &)=\fBdefault\fP" .br .ti -1c .RI "\fBbad_alloc\fP & \fBoperator=\fP (const \fBbad_alloc\fP &)=\fBdefault\fP" .br .ti -1c .RI "\fBvirtual\fP const char * \fBwhat\fP () const \fBthrow\fP ()" .br .in -1c .SH "Detailed Description" .PP Exception possibly thrown by \fRnew\fP\&. \fRbad_alloc\fP (or classes derived from it) is used to report allocation errors from the throwing forms of \fRnew\fP\&. .br .SH "Member Function Documentation" .PP .SS "\fBvirtual\fP const char * std::bad_alloc::what () const\fR [virtual]\fP" Returns a C-style character string describing the general cause of the current error\&. .br .PP Reimplemented from \fBstd::exception\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.