Invoke a callable with the elements of a tuple as arguments.
Synopsis
Declared in <absl/utility/utility.h>
template<
class F,
class T>
[[deprecated]]
constexpr
decltype(auto)
apply(
F&& f,
T&& t) noexcept(/* see-below */);
|
Warning
|
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
Name |
Description |
f |
The callable to invoke. |
t |
The tuple whose elements are unpacked as arguments. |
Created with MrDocs