Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::Pair< T1, T2 > Struct Template Reference

Struct that contains 2 elements. More...

#include <CopyableTuple.h>

Public Member Functions

 Pair ()
 empty constructor More...
 
 Pair (T1 one, T2 two)
 Constructor that initializes 2 fields. More...
 

Public Attributes

T1 first
 first element More...
 
T2 second
 second element More...
 

Detailed Description

template<typename T1, typename T2>
struct galois::Pair< T1, T2 >

Struct that contains 2 elements.

Used over std::pair as std::pair memory layout isn't guaranteed.

Template Parameters
T1type of first element
T2type of second element

Constructor & Destructor Documentation

template<typename T1, typename T2>
galois::Pair< T1, T2 >::Pair ( )
inline

empty constructor

template<typename T1, typename T2>
galois::Pair< T1, T2 >::Pair ( T1  one,
T2  two 
)
inline

Constructor that initializes 2 fields.

Member Data Documentation

template<typename T1, typename T2>
T1 galois::Pair< T1, T2 >::first

first element

template<typename T1, typename T2>
T2 galois::Pair< T1, T2 >::second

second element


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