class bad_variant_access : public exception { public: bad_variant_access() noexcept; const char* what() const noexcept override; };
Objects of type bad_variant_access are thrown to report invalid accesses to the value of a variant object.
bad_variant_access() noexcept;
const char* what() const noexcept override;