[#bsl-get_if-0d] = xref:bsl.adoc[bsl]::get_if :relfileprefix: ../ :mrdocs: Return a pointer to the alternative object with index (template parameter) `t_INDEX` in the specified `obj`, or a null pointer if `obj` itself is a null pointer or if `t_INDEX` is not the index of the currently active alternative. `t_INDEX` shall be a valid alternative index. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::size_t t_INDEX, class t_HEAD, class... t_TAIL> add_pointer<variant_alternative<t_INDEX, variant<t_HEAD, t_TAIL...>>::type const>::type get_if(xref:bsl/variant.adoc[variant<t_HEAD, t_TAIL...>] const* obj) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#