Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/utility/any/bad any cast"

From cppreference.com
< cpp‎ | utility‎ | any
(+)
 
m
Line 8: Line 8:
  
 
{{cpp/error/exception/inherit}}
 
{{cpp/error/exception/inherit}}
 +
 +
[[zh:cpp/utility/any/bad_any_cast]]

Revision as of 13:30, 22 January 2017

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
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]
destroys the exception object
(virtual public member function of std::exception) [edit]
[virtual]
returns an explanatory string
(virtual public member function of std::exception) [edit]