Compute the index of the first alternative identical to TYPE.
Declared in <bslstl_variant.h>
#define BSLSTL_VARIANT_INDEX_OF(TYPE, VARIANT)
This component-private macro expands to the index of the first alternative in the specified VARIANT that is identical to the specified TYPE, or bsl::variant_npos if no such alternative exists.
| Name | Description |
|---|---|
| TYPE | candidate alternative type |
| VARIANT | variant specialization to search |