CVB++ 14.1
_doc_get_t_ts Class Reference

Gets the value of the given Shims::variant var as the alternative with type T. More...

#include <variant.hpp>

Detailed Description

Gets the value of the given Shims::variant var as the alternative with type T.

Template Parameters
TType to query.
Parameters
[in]varVariant to get the value of.
Returns
The value in var.
Exceptions
bad_variant_accessthrown if T is not a variant alternative.