.TH "std::bad_alloc" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::bad_alloc \- Exception possibly thrown by \fCnew\fP\&. .SH SYNOPSIS .br .PP .PP \fC#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 (\fBconst\fP \fBbad_alloc\fP &)=\fBdefault\fP" .br .ti -1c .RI "\fBbad_alloc\fP & \fBoperator=\fP (\fBconst\fP \fBbad_alloc\fP &)=\fBdefault\fP" .br .ti -1c .RI "\fBvirtual\fP \fBconst\fP char * \fBwhat\fP () \fBconst\fP \fBthrow\fP ()" .br .in -1c .SH "Detailed Description" .PP Exception possibly thrown by \fCnew\fP\&. \fCbad_alloc\fP (or classes derived from it) is used to report allocation errors from the throwing forms of \fCnew\fP\&. .br .SH "Member Function Documentation" .PP .SS "\fBvirtual\fP \fBconst\fP char * std::bad_alloc::what () const\fC [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\&.