Template Function thrust::operator<

Function Documentation

template<typename T1, typename T2>__host__ __device__ bool thrust::operator<(const pair < T1, T2 > & x, const pair < T1, T2 > & y)

This operator tests two pairs for ascending ordering.

Return

true if and only if x.first < y.first || (!(y.first < x.first) && x.second < y.second).

Parameters
  • x: The first pair to compare.

  • y: The second pair to compare.

Template Parameters