|
BDE 4.39.x Production Release
|
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.
Variant_ConvertIndex allows implicit conversions, but this behavior cannot be implemented in C++03.