pair#

template<class T, class U>
using thrust::pair = ::cuda::std::pair<T, U>#

pair is a generic data structure encapsulating a heterogeneous pair of values.

Template Parameters:
  • T1 – The type of pair's first object type. There are no requirements on the type of T1. T1’s type is provided by pair::first_type.

  • T2 – The type of pair's second object type. There are no requirements on the type of T2. T2’s type is provided by pair::second_type.