thrust::tuple_element

Defined in thrust/pair.h

template<size_t N, class T>
using thrust::tuple_element = _CUDA_VSTD::tuple_element<N, T>

This convenience metafunction is included for compatibility with tuple. It returns either the type of a pair's first_type or second_type in its nested type, type.

This metafunction returns the type of a tuple's Nth element.

See also

Pair

See also

Tuple

Template Parameters
  • N – This parameter selects the member of interest.

  • T – A pair type of interest.

  • N – This parameter selects the element of interest.

  • T – A tuple type of interest.