hpx::unwrapping#

Defined in header hpx/unwrap.hpp.

See Public API for a list of names and headers that are part of the public HPX API.

See also:

template<typename T>
auto hpx::unwrapping(T &&callable) -> decltype(util::detail::functional_unwrap_depth_impl<1U>(HPX_FORWARD(T, callable)))#

Returns a callable object which unwraps its arguments upon invocation using the hpx::unwrap() function and then passes the result to the given callable object.

    return left + right;
});

int i1 = callable(hpx::make_ready_future(1),
                  hpx::make_ready_future(2));

See hpx::unwrap() for a detailed description.

Parameters

callable – the callable object which is called with the result of the corresponding unwrap function.