[#absl-apply]
= xref:absl.adoc[absl]::apply
:relfileprefix: ../
:mrdocs:

Invoke a callable with the elements of a tuple as arguments&period;

== Synopsis

Declared in `&lt;absl&sol;utility&sol;utility&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class F,
    class T&gt;
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
constexpr
decltype(auto)
apply(
    F&& f,
    T&& t) noexcept(&sol;&ast; see-below &ast;&sol;);
----

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

Historical note&colon; Abseil once provided implementations of these abstractions for platforms that had not yet provided them&period; Those platforms are no longer supported&period; New code should simply use the the ones from std directly&period;

== Exception specification

This function is potentially-throwing unless `noexcept(std&colon;&colon;apply(std&colon;&colon;declval&lt;F&gt;(), std&colon;&colon;declval&lt;T&gt;()))`.

== Return Value

The result of invoking `f` with the tuple&apos;s elements&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *f*
| The callable to invoke&period;
| *t*
| The tuple whose elements are unpacked as arguments&period;
|===


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