Pair

template <size_t N,   class T> using tuple_element = see below;
template <class T> using tuple_size = see below;
template <class T,   class U> using pair = see below;

Types

Type Alias tuple_element

template <size_t N,   class T> using tuple_element = ::cuda::std::tuple_element< N, T >; This convenience metafunction is included for compatibility with tuple. It returns either the type of a pair'sfirst_type or second_type in its nested type, type.

This metafunction returns the type of a tuple'sNth element.

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.

See:

Type Alias tuple_size

template <class T> using tuple_size = ::cuda::std::tuple_size< T >; This convenience metafunction is included for compatibility with tuple. It returns 2, the number of elements of a pair, in its nested data member, value.

This metafunction returns the number of elements of a tuple type of interest.

Template Parameters:

  • Pair A pair type of interest.
  • T A tuple type of interest.

See:

Type Alias pair

template <class T,   class U> using 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.