[#bsl-get_if-09] = xref:bsl.adoc[bsl]::get_if :relfileprefix: ../ :mrdocs: Return a pointer to the alternative object with type (template parameter) `t_TYPE` in the specified `obj`, or a null pointer if `obj` itself is a null pointer or if `t_TYPE` is not the type of the currently active alternative. `t_TYPE` shall appear exactly once in the variant's list of alternatives. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_HEAD, class... t_TAIL> add_pointer<t_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]#