Return a reference to the alternative object with type (template parameter) t_TYPE in the specified obj. If t_TYPE is not the type of the currently active alternative, throw an exception of type bad_variant_access. t_TYPE shall appear exactly once in the variant's list of alternatives.
Declared in <bslstl_variant.h>
template<
class t_TYPE,
class t_HEAD,
class... t_TAIL>
t_TYPE&
get(variant<t_HEAD, t_TAIL...>& obj);