std::experimental::bad_any_cast(3)

std::experimental::bad_any_cast3

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::experimental::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.

Author

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

From gcc 16.2.1+r23+gd564253eb6c8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.