This component‐private metafunction provides the implementation of bsl::variant_alternative.
Synopsis
Declared in <bslstl_variant.h>
template<
std::size_t t_INDEX,
class t_HEAD = BSLSTL_VARIANT_NOT_A_TYPE,
class... t_TAIL>
struct Variant_VariantAlternativeImpl
: Variant_VariantAlternativeImpl<t_INDEX ‐ 1, t_TAIL...>
Description
It recursively strips one type from the front of (template parameters) t_HEAD, t_TAIL... for each decrement of (template parameter) t_INDEX until t_INDEX reaches 0, at which point the resulting t_HEAD is the alternative type.
Base Classes
Name |
Description |
|
This component‐private metafunction provides the implementation of |
Specializations
Name |
Description |
|
This explicit specialization handles the case of an empty alternative list queried at index |
This partial specialization is used when the list of alternatives is exhausted before |
|
|
This partial specialization is the base case of the recursion, reached when |
Derived Classes
Name |
Description |
|
This component‐private metafunction provides the implementation of |
Compute the alternative type at index |
Created with MrDocs