.TH "std::bad_alloc" 3cxx "Sat Aug 14 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::bad_alloc \- Exception possibly thrown by \fCnew\fP\&. .SH SYNOPSIS .br .PP .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 &)=default" .br .ti -1c .RI "\fBbad_alloc\fP & \fBoperator=\fP (const \fBbad_alloc\fP &)=default" .br .ti -1c .RI "virtual const char * \fBwhat\fP () const throw ()" .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\&. .PP Definition at line 54 of file new\&. .SH "Member Function Documentation" .PP .SS "virtual const char* std::bad_alloc::what () const\fC [virtual]\fP" Returns a C-style character string describing the general cause of the current error\&. .PP Reimplemented from \fBstd::exception\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.