Thrust
|
#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 |
pair
is a generic data structure encapsulating a heterogeneous pair of values.
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 . |