[#absl-get_if-07]
= xref:absl.adoc[absl]::get&lowbar;if
:relfileprefix: ../
:mrdocs:

`get&lowbar;if` overloads

== Synopses

Declared in `&lt;absl&sol;types&sol;variant&period;h&gt;`

Returns a pointer to the alternative of type `T`, or null (deprecated)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename&period;&period;&period; Args&gt;
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
constexpr
decltype(std&colon;&colon;get&lowbar;if&lt;T&gt;(std&colon;&colon;declval&lt;Args&gt;()&period;&period;&period;))
xref:absl/get_if-0f.adoc[get&lowbar;if](Args&&&period;&period;&period; args);
----

[.small]#xref:absl/get_if-0f.adoc[_» more&period;&period;&period;_]#

Returns a pointer to the alternative at index `I`, or null (deprecated)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    size&lowbar;t I,
    typename&period;&period;&period; Args&gt;
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
constexpr
decltype(std&colon;&colon;get&lowbar;if&lt;I&gt;(std&colon;&colon;declval&lt;Args&gt;()&period;&period;&period;))
xref:absl/get_if-0d.adoc[get&lowbar;if](Args&&&period;&period;&period; args);
----

[.small]#xref:absl/get_if-0d.adoc[_» more&period;&period;&period;_]#

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

* The pointer returned by `std&colon;&colon;get&lowbar;if&lt;T&gt;`&period;
* The pointer returned by `std&colon;&colon;get&lowbar;if&lt;I&gt;`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| Arguments forwarded to `std&colon;&colon;get&lowbar;if`&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
