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
pair
from two objects.- Return
A newly-constructed
pair
copied froma
andb
.- 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
.