BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslstl::Variant_ConvertToIndexImpl< t_INDEX, t_TYPE, t_HEAD, t_TAIL > Struct Template Reference

Detailed Description

template<size_t t_INDEX, class t_TYPE, class t_HEAD = BSLSTL_VARIANT_NOT_A_TYPE, class... t_TAIL>
struct bslstl::Variant_ConvertToIndexImpl< t_INDEX, t_TYPE, t_HEAD, t_TAIL >

This component-private metafunction computes t_INDEX + i, where i is the zero-based index of the first occurrence of (template parameter) t_TYPE in (template parameters) t_HEAD, t_TAIL..., or bsl::variant_npos if not found. An alternative is considered to match t_TYPE if the two types are the same modulo cv-qualification. This metafunction is used to implement Variant_ConvertIndex.


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