Extended CUDA Library (ecuda)  2.0
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
ecuda::pair< T1, T2 > Struct Template Reference

Couples together a pair of values. More...

#include <utility.hpp>

Public Types

typedef T1 first_type
 
typedef T2 second_type
 

Public Member Functions

ECUDA_SUPPRESS_HD_WARNINGS
__HOST__ __DEVICE__ 
pair ()
 
template<typename U , typename V >
ECUDA_SUPPRESS_HD_WARNINGS
__HOST__ __DEVICE__ 
pair (const pair< U, V > &pr)
 
ECUDA_SUPPRESS_HD_WARNINGS
__HOST__ __DEVICE__ 
pair (const first_type &a, const second_type &b)
 

Public Attributes

T1 first
 
T2 second
 

Detailed Description

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

Couples together a pair of values.

This class is equivalent to the std::pair class

Definition at line 53 of file utility.hpp.

Member Typedef Documentation

template<typename T1, typename T2>
typedef T1 ecuda::pair< T1, T2 >::first_type

Definition at line 54 of file utility.hpp.

template<typename T1, typename T2>
typedef T2 ecuda::pair< T1, T2 >::second_type

Definition at line 55 of file utility.hpp.

Constructor & Destructor Documentation

template<typename T1, typename T2>
ECUDA_SUPPRESS_HD_WARNINGS __HOST__ __DEVICE__ ecuda::pair< T1, T2 >::pair ( )
inline

Definition at line 59 of file utility.hpp.

template<typename T1, typename T2>
template<typename U , typename V >
ECUDA_SUPPRESS_HD_WARNINGS __HOST__ __DEVICE__ ecuda::pair< T1, T2 >::pair ( const pair< U, V > &  pr)
inline

Definition at line 61 of file utility.hpp.

template<typename T1, typename T2>
ECUDA_SUPPRESS_HD_WARNINGS __HOST__ __DEVICE__ ecuda::pair< T1, T2 >::pair ( const first_type a,
const second_type b 
)
inline

Definition at line 63 of file utility.hpp.

Member Data Documentation

template<typename T1, typename T2>
T1 ecuda::pair< T1, T2 >::first

Definition at line 56 of file utility.hpp.

template<typename T1, typename T2>
T2 ecuda::pair< T1, T2 >::second

Definition at line 57 of file utility.hpp.


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