Gets the value of the given Shims::variant var as the alternative with type T
.
More...
#include <variant.hpp>
Gets the value of the given Shims::variant var as the alternative with type T
.
T | Type to query. |
[in] | var | Variant to get the value of. |
bad_variant_access | thrown if T is not a variant alternative. |