acadia/zion/lib/pair.h

14 lines
251 B
C
Raw Normal View History

#pragma once
template <typename T, typename U>
class Pair {
public:
Pair(const T& first, const U& second) : first_(first), second_(second) {}
T& first() { return first_; }
U& second() { return second_; }
private:
T first_;
U second_;
};