logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::bad_alloc - Exception possibly thrown by new.

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++                               std::bad_alloc(3cxx)

Detailed Description

       Exception possibly thrown by new.

       bad_alloc (or classes derived from it) is used to report allocation errors from the throwing forms of
       new.

Member Function Documentation

virtualconstchar*std::bad_alloc::what()const[virtual]
       Returns a C-style character string describing the general cause of the current error.

       Reimplemented from std::exception.

Name

       std::bad_alloc - Exception possibly thrown by new.

Synopsis

       #include <new>

       Inherits std::exception.

       Inherited by std::bad_array_new_length.

   PublicMemberFunctionsbad_alloc (const bad_alloc &)=defaultbad_alloc & operator= (const bad_alloc &)=defaultvirtual const char * what () const  throw ()