Applies the visitor vis (a Callable that can be called with any combination of types from the variant) to the variant held by self.
Notes Let n be (1* ... *std::variant_size_vFunctions visit (C++17) calls the provided functor with the arguments held by one or more variant s (function template) [edit] holds_alternative (C++17) checks if a variant currently holds a given type (function template) [edit] get(std::variant) (C++17) reads the value of the variant given the index or the type (if the type is unique), throws ...
std::get(std::variant) called with an index or type that does not match the currently active alternative. std::visit called to visit a variant that is valueless_by_exception.