thrust

◆ make_pair()

template<typename T1 , typename T2 >
__host__ __device__ pair<T1,T2> thrust::make_pair ( T1  x,
T2  y 
)
inline

This convenience function creates a pair from two objects.

Parameters
xThe first object to copy from.
yThe second object to copy from.
Returns
A newly-constructed pair copied from a and b.
Template Parameters
T1There are no requirements on the type of T1.
T2There are no requirements on the type of T2.