Thrust
Public Types | Public Member Functions | Public Attributes | List of all members
thrust::pair< T1, T2 > Struct Template Reference

#include <thrust/pair.h>

Public Types

typedef T1 first_type
 
typedef T2 second_type
 

Public Member Functions

__host__ __device__ pair (void)
 
__host__ __device__ pair (const T1 &x, const T2 &y)
 
template<typename U1 , typename U2 >
__host__ __device__ pair (const pair< U1, U2 > &p)
 
template<typename U1 , typename U2 >
__host__ __device__ pair (const std::pair< U1, U2 > &p)
 
__host__ __device__ void swap (pair &p)
 

Public Attributes

first_type first
 
second_type second
 

Detailed Description

template<typename T1, typename T2>
struct thrust::pair< T1, T2 >

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

Template Parameters
T1The 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.
T2The 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.

The documentation for this struct was generated from the following file: