Invoke a callable with the elements of a tuple as arguments.
Declared in <absl/utility/utility.h>
template<
class F,
class T>
[[deprecated]]
constexpr
decltype(auto)
apply(
F&& f,
T&& t) noexcept(/* see-below */);
Deprecated. Use of this entity is allowed but discouraged.
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.
This function is potentially-throwing unless noexcept(std::apply(std::declval<F>(), std::declval<T>())).
The result of invoking f with the tuple's elements.
| Name | Description |
|---|---|
| f | The callable to invoke. |
| t | The tuple whose elements are unpacked as arguments. |