Thrust
Classes | Namespaces | Functions
tuple.h File Reference

A type encapsulating a heterogeneous collection of elements. More...

#include <thrust/detail/config.h>
#include <thrust/detail/tuple.inl>
#include <thrust/pair.h>

Go to the source code of this file.

Classes

struct  thrust::tuple_element< N, T >
 
struct  thrust::tuple_size< Pair >
 
class  thrust::tuple< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 >
 tuple is a class template that can be instantiated with up to ten arguments. Each template argument specifies the type of element in the tuple. Consequently, tuples are heterogeneous, fixed-size collections of values. An instantiation of tuple with two arguments is similar to an instantiation of pair with the same two arguments. Individual elements of a tuple may be accessed with the get function. More...
 

Namespaces

 thrust
 thrust is the top-level namespace which contains all Thrust functions and types.
 

Functions

template<int N, class HT , class TT >
__host__ __device__ access_traits< typename tuple_element< N, detail::cons< HT, TT > >::type >::non_const_type thrust::get (detail::cons< HT, TT > &t)
 
template<int N, class HT , class TT >
__host__ __device__ access_traits< typename tuple_element< N, detail::cons< HT, TT > >::type >::const_type thrust::get (const detail::cons< HT, TT > &t)
 
template<class T0 >
__host__ __device__ detail::make_tuple_mapper< T0 >::type thrust::make_tuple (const T0 &t0)
 
template<class T0 , class T1 >
__host__ __device__ detail::make_tuple_mapper< T0, T1 >::type thrust::make_tuple (const T0 &t0, const T1 &t1)
 
template<typename T0 >
__host__ __device__ tuple< T0 & > thrust::tie (T0 &t0)
 
template<typename T0 , typename T1 >
__host__ __device__ tuple< T0 &, T1 & > thrust::tie (T0 &t0, T1 &t1)
 
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename U0 , typename U1 , typename U2 , typename U3 , typename U4 , typename U5 , typename U6 , typename U7 , typename U8 , typename U9 >
__host__ __device__ void thrust::swap (tuple< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9 > &x, tuple< U0, U1, U2, U3, U4, U5, U6, U7, U8, U9 > &y)
 

Detailed Description

A type encapsulating a heterogeneous collection of elements.