20 General utilities library [utilities]

20.8 Storage for any type [any]

20.8.2 Class bad_­any_­cast [any.bad.any.cast]

class bad_any_cast : public bad_cast {
public:
  // see [exception] for the specification of the special member functions
  const char* what() const noexcept override;
};
Objects of type bad_­any_­cast are thrown by a failed any_­cast.
const char* what() const noexcept override;
Returns: An implementation-defined ntbs.