BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslstl::Variant_ConvertIndex< t_TYPE, t_VARIANT > Struct Template Reference

Detailed Description

template<class t_TYPE, class t_VARIANT>
struct bslstl::Variant_ConvertIndex< t_TYPE, t_VARIANT >

This component-private metafunction computes the zero-based index of the first occurrence of (template parameter) t_TYPE in the list of alternatives of (template parameter) t_VARIANT, 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. The primary template (used when t_VARIANT is not a bsl::variant) is not defined. This metafunction is used to determine the alternative to be constructed or assigned to from a given argument type when the alternative type is not explicitly specified.

Note
Note that in C++11 and later, Variant_ConvertIndex allows implicit conversions, but this behavior cannot be implemented in C++03.

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