hpx::forward_as_tuple

hpx::forward_as_tuple#

Defined in header hpx/tuple.hpp.

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

See also:

template<typename ...Ts>
constexpr tuple<Ts&&...> hpx::forward_as_tuple(Ts&&... ts)#

Constructs a tuple of references to the arguments in args suitable for forwarding as an argument to a function. The tuple has rvalue reference data members when rvalues are used as arguments, and otherwise has lvalue reference data members.

Parameters:

ts – zero or more arguments to construct the tuple from

Returns:

hpx::tuple object created as if by

hpx::tuple<Ts&&...>(HPX_FORWARD(Ts, ts)...)