template <typename T>
auto unwrapping(T&& callable)
-> decltype(util::detail::
functional_unwrap_depth_impl<
1U>(static_cast<
decltype(callable)&&>(
callable)))
template <typename T>
auto unwrapping(T&& callable)
-> decltype(util::detail::
functional_unwrap_depth_impl<
1U>(static_cast<
decltype(callable)&&>(
callable)))Description
Returns a callable object which unwraps its arguments upon invocation using the pika::unwrap() function and then passes the result to the given callable object. ```cpp auto callable = pika::unwrapping([](int left, int right) { return left + right; }); int i1 = callable(pika::make_ready_future(1), pika::make_ready_future(2)); ``` See pika::unwrap() for a detailed description.
Declared at: libs/pika/pack_traversal/include/pika/pack_traversal/unwrap.hpp:173
Parameters
- T&& callable
- the callable object which which is called with the result of the corresponding unwrap function.