Thrust

◆ tie() [2/2]

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

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.

Referenced by thrust::tuple< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::swap().