This value is returned by bsl::variant::index() if valueless_by_exception() is true.
bsl::variant::index()
valueless_by_exception()
true
Declared in <bslstl_variant.h>
<bslstl_variant.h>
constexpr std::size_t variant_npos = -1;