See the first get overload above.
Synopsis
Declared in <bslstl_variant.h>
template<
std::size_t t_INDEX,
class t_HEAD,
class... t_TAIL>
variant_alternative<t_INDEX, variant<t_HEAD, t_TAIL...>>::type const&&
get(variant<t_HEAD, t_TAIL...> const&& obj);
Return Value
const rvalue reference to the alternative at index t_INDEX
Parameters
Name |
Description |
obj |
variant whose alternative is accessed |
Created with MrDocs