Template Function thrust::make_pair¶
Defined in File pair.h
Function Documentation¶
-
template<typename T1, typename T2>__host__ __device__ pair<T1,T2> thrust::make_pair(T1 x, T2 y) This convenience function creates a
pairfrom two objects.- Return
A newly-constructed
paircopied fromaandb.- Parameters
x: The first object to copy from.y: The second object to copy from.
- Template Parameters
T1: There are no requirements on the type ofT1.T2: There are no requirements on the type ofT2.