Pair

template <class T,   class U> struct thrust::pair;
template <size_t N,   class T> using tuple_element = see below;
template <class T> using tuple_size = see below;
template <class T1,   class T2> _CCCL_HOST_DEVICE _CUDA_VSTD::__enable_if_t< _CUDA_VSTD::__is_swappable< T1 >::value &&_CUDA_VSTD::__is_swappable< T2 >::value, void > swap(pair< T1, T2 > & lhs,   pair< T1, T2 > & rhs);
template <class T1,   class T2> _CCCL_HOST_DEVICE pair< typename _CUDA_VSTD::__unwrap_ref_decay< T1 >::type, typename _CUDA_VSTD::__unwrap_ref_decay< T2 >::type > make_pair(T1 && t1,   T2 && t2);

Member Classes

Struct thrust::pair

Inherits From: _CUDA_VSTD::pair< T, U >

Types

Type Alias tuple_element

template <size_t N,   class T> using 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'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_VSTD::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:

Functions

Function swap

template <class T1,   class T2> _CCCL_HOST_DEVICE _CUDA_VSTD::__enable_if_t< _CUDA_VSTD::__is_swappable< T1 >::value &&_CUDA_VSTD::__is_swappable< T2 >::value, void > swap(pair< T1, T2 > & lhs,   pair< T1, T2 > & rhs);

Function make_pair

template <class T1,   class T2> _CCCL_HOST_DEVICE pair< typename _CUDA_VSTD::__unwrap_ref_decay< T1 >::type, typename _CUDA_VSTD::__unwrap_ref_decay< T2 >::type > make_pair(T1 && t1,   T2 && t2);