cpp/utility/variant/index

Returns the zero-based index of the alternative that is currently held by the variant.

If the variant is, returns.