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_optional_access - Exception class thrown when a disengaged optional object is dereferenced.

Author

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

                                                    libstdc++                     std::bad_optional_access(3cxx)

Detailed Description

       Exception class thrown when a disengaged optional object is dereferenced.

Member Function Documentation

constchar*std::bad_optional_access::what()const[inline],[override],[virtual],[noexcept]
       Returns a C-style character string describing the general cause of the current error.

       Reimplemented from std::exception.

Name

       std::bad_optional_access - Exception class thrown when a disengaged optional object is dereferenced.

Synopsis

       #include <optional>

       Inherits std::exception.

   PublicMemberFunctions
       const char * what () const noexcept override

See Also