Template Function thrust::make_pair

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 from a and b.

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 of T1.

  • T2: There are no requirements on the type of T2.