[#bsl-variant_alternative-0d] = xref:bsl.adoc[bsl]::xref:bsl/variant_alternative-0c.adoc[variant_alternative]<t_INDEX, t_TYPE const> :relfileprefix: ../ :mrdocs: Strip `const` from `t_TYPE` before computing the alternative type. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::size_t t_INDEX, class t_TYPE> struct xref:bsl/variant_alternative-0c.adoc[variant_alternative]<t_INDEX, t_TYPE const>; ---- == Description This partial specialization of `variant_alternative` strips a top‐level `const` qualifier from `t_TYPE` before forwarding to the primary metafunction, and re‐applies `const` to the resulting `type`. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/variant_alternative-0d/type.adoc[`type`] | The alternative type at `t_INDEX`, with `const` re‐applied. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#