bsl::variant_alternative<t_INDEX, t_TYPE const>

Strip const from t_TYPE before computing the alternative type.

Synopsis

Declared in <bslstl_variant.h>

template<
    std::size_t t_INDEX,
    class t_TYPE>
struct 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

NameDescription
type The alternative type at t_INDEX, with const re-applied.