template<typename T1, typename T2>
class Sleak::Pair< T1, T2 >
A simple container for storing two values as a pair.
This class provides a way to store two values together as a single unit. It is similar to std::pair and can be used in similar situations, such as storing key-value pairs, coordinates, or any other data that needs to be grouped together.
Example Use Cases:
- Storing key-value pairs in a map or hash table.
- Representing coordinates (x, y) or (latitude, longitude).
- Returning multiple values from a function.
Implementation Details:
- Stores two values of potentially different types.
- Provides access to the values through first and second members.
- Implements comparison operators for lexicographical ordering.
- Offers a makePair function for convenient creation of Pair objects.
Definition at line 30 of file Pair.hpp.