BSLSTL_VARIANT_INDEX_OF

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.

Synopsis

Declared in <bslstl_variant.h>

#define BSLSTL_VARIANT_INDEX_OF(TYPE, VARIANT)