Pair
touchgfx/hal/Types.hpp
A simple struct for holding pairs of data.
Template Parameters:
- T1 The type of the first element.
- T2 The type of the second element.
Public Functions
Pair() | |
Constructor initializing the elements it holds, using their default constructors. | |
template <class U ,class V > | Pair(const Pair< U, V > & p) |
Copy constructor. | |
Pair(const T1 & x, const T2 & y) | |
Constructor initializing the elements it holds, using their copy constructor. | |
Public Attributes
Public Functions Documentation
Pair
Pair | ( | ) |
Constructor initializing the elements it holds, using their default constructors.
Pair
Copy constructor.
Template Parameters:
U | Generic type parameter. |
V | Generic type parameter. |
Parameters:
p | The pair to copy from. |
Pair
Pair | ( | const T1 & | x , | ||
const T2 & | y | ||||
) |
Constructor initializing the elements it holds, using their copy constructor.
Parameters:
x | Reference to the first element. |
y | Reference to the second element. |
Public Attributes Documentation
first
T1 first
The first element.
second
T2 second
The second element.