Return a pointer to the alternative at index t_INDEX, or null.

Synopsis

Declared in <bslstl_variant.h>

template<
    std::size_t t_INDEX,
    class t_HEAD,
    class... t_TAIL>
add_pointer<variant_alternative<t_INDEX, variant<t_HEAD, t_TAIL...>>::type>::type
get_if(variant<t_HEAD, t_TAIL...>* obj) noexcept;

Created with MrDocs