Return the 1-based index of the held type, or 0 if unset.
Declared in <bdlb_variant.h>
int
typeIndex() const;
Note that instead of switching code on the type index, calling apply is the preferred method of manipulating different types stored inside a variant.
the 1-based index of the held type, or 0 if unset