W3cubDocs

/C++

std::bad_any_cast

Defined in header <any>
class bad_any_cast : public std::bad_cast;
(since C++17)

Defines a type of object to be thrown by the value-returning forms of std::any_cast on failure.

Inherited from std::exception

Member functions

[virtual]
destructs the exception object
(virtual public member function of std::exception)
[virtual]
returns an explanatory string
(virtual public member function of std::exception)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/any/bad_any_cast