Strip volatile 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 volatile>;

Description

This partial specialization of variant_alternative strips a top‐level volatile qualifier from t_TYPE before forwarding to the primary metafunction, and re‐applies volatile to the resulting type.

Type Aliases

Name

Description

type

The alternative type at t_INDEX, with volatile re‐applied.

Created with MrDocs