thrust::pair#
-
template<class T, class U>
using thrust::pair = ::cuda::std::pair<T, U># pairis a generic data structure encapsulating a heterogeneous pair of values.- Template Parameters:
T1 – The type of
pair'sfirst object type. There are no requirements on the type ofT1.T1’s type is provided bypair::first_type.T2 – The type of
pair'ssecond object type. There are no requirements on the type ofT2.T2’s type is provided bypair::second_type.