thrust

◆ tie() [2/2]

template<typename T0 , typename T1 >
__host__ __device__ tuple<T0&,T1&> thrust::tie ( T0 &  t0,
T1 &  t1 
)
inline

This version of tie creates a new tuple of references object which refers to this function's arguments.

Parameters
t0The first object to reference.
t1The second object to reference.
Returns
A tuple object with two members which are references to t0 and t1.
Note
tie has ten variants, the rest of which are omitted here for brevity.