[#absl-apply] = xref:absl.adoc[absl]::apply :relfileprefix: ../ :mrdocs: Invoke a callable with the elements of a tuple as arguments. == Synopsis Declared in `<absl/utility/utility.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class F, class T> [[deprecated]] constexpr decltype(auto) apply( F&& f, T&& t) noexcept(/* see-below */); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Description Historical note: Abseil once provided implementations of these abstractions for platforms that had not yet provided them. Those platforms are no longer supported. New code should simply use the the ones from std directly. == Exception specification This function is potentially-throwing unless `noexcept(std::apply(std::declval<F>(), std::declval<T>()))`. == Return Value The result of invoking `f` with the tuple's elements. == Parameters [cols="1,4"] |=== | Name| Description | *f* | The callable to invoke. | *t* | The tuple whose elements are unpacked as arguments. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#