Compute the alternative type at index t_INDEX of a bsl::variant.
Synopsis
Declared in <bslstl_variant.h>
template<
std::size_t t_INDEX,
class t_HEAD,
class... t_TAIL>
struct variant_alternative<t_INDEX, variant<t_HEAD, t_TAIL...>>
: Variant_VariantAlternativeImpl<t_INDEX, t_HEAD, t_TAIL...>
Description
This partial specialization of variant_alternative computes the alternative type at index t_INDEX for a bsl::variant specialized on (template parameters) t_HEAD, t_TAIL....
t_INDEX shall be a valid alternative index for the variant.
Base Classes
Name |
Description |
This component‐private metafunction provides the implementation of |
Created with MrDocs