std::bad_any_cast(3cxx)

std::bad_any_cast3cxx

Exception class thrown by a failed any_cast.

Usage

#include <any>

Inherits std::bad_cast.

Public Member Functions

virtual const char * what () const noexcept

Detailed Description

Exception class thrown by a failed any_cast.

Member Function Documentation

virtual const char * std::bad_any_cast::what () const [inline], [virtual], [noexcept]

Returns a C-style character string describing the general cause of the current error.

Reimplemented from std::bad_cast.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc. Parsed by carta from the page's man source.