123456789101112131415161718192021222324252627282930313233343536 |
- #pragma once
- namespace Framework
- {
- template<typename First, typename Second>
- class ImmutablePair
- {
- private:
- First first;
- Second second;
- public:
- ImmutablePair()
- {}
- ImmutablePair(const First& first, const Second& second)
- : first(first),
- second(second)
- {}
- ImmutablePair(const ImmutablePair<First, Second>& other)
- : first(other.first),
- second(other.second)
- {}
- const First& getFirst() const
- {
- return first;
- }
- const Second& getSecond() const
- {
- return second;
- }
- };
- }
|