BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::Variant_CVQualAlt< t_VARIANT, t_INDEX > Struct Template Reference

#include <bslstl_variant.h>

Public Types

typedef bsl::variant_alternative< t_INDEX, typenamebslmf::MovableRefUtil::RemoveReference< t_VARIANT >::type >::type CVAlt
 Alternative at t_INDEX with combined cv-qualifiers.
 
typedef bsl::conditional< bslmf::MovableRefUtil::IsReference< t_VARIANT >::value, typenamebsl::conditional< bslmf::MovableRefUtil::IsMovableReference< t_VARIANT >::value, typenamebslmf::MovableRefUtil::AddMovableReference< CVAlt >::type, typenamebslmf::MovableRefUtil::AddLvalueReference< CVAlt >::type >::type, CVAlt >::type type
 

Detailed Description

template<class t_VARIANT, size_t t_INDEX>
struct bslstl::Variant_CVQualAlt< t_VARIANT, t_INDEX >

This component-private metafunction calculates the alternative type at index (template parameter) t_INDEX in (template parameter) t_VARIANT, where the cv- and ref-qualifiers of t_VARIANT are added to the alternative type. This metafunction is used to calculate the return type of bsl::visit.

Member Typedef Documentation

◆ CVAlt

template<class t_VARIANT , size_t t_INDEX>
typedef bsl::variant_alternative<t_INDEX,typenamebslmf::MovableRefUtil::RemoveReference<t_VARIANT>::type>::type bslstl::Variant_CVQualAlt< t_VARIANT, t_INDEX >::CVAlt

◆ type

template<class t_VARIANT , size_t t_INDEX>
typedef bsl::conditional<bslmf::MovableRefUtil::IsReference<t_VARIANT>::value,typenamebsl::conditional<bslmf::MovableRefUtil::IsMovableReference<t_VARIANT>::value,typenamebslmf::MovableRefUtil::AddMovableReference<CVAlt>::type,typenamebslmf::MovableRefUtil::AddLvalueReference<CVAlt>::type>::type,CVAlt>::type bslstl::Variant_CVQualAlt< t_VARIANT, t_INDEX >::type

The documentation for this struct was generated from the following file: