Gets the value of the given Shims::variant var as the alternative with index I
.
More...
#include <variant.hpp>
Gets the value of the given Shims::variant var as the alternative with index I
.
I | Index of alternative to extract. |
[in] | var | Variant to get the value of. |
bad_variant_access | thrown if I is unequal variant::index(). |