[glacier] Move Pair to glacier.
This commit is contained in:
parent
c2dfe17363
commit
0ec2fa3e76
3 changed files with 8 additions and 3 deletions
17
lib/glacier/container/pair.h
Normal file
17
lib/glacier/container/pair.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
namespace glcr {
|
||||
|
||||
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_;
|
||||
};
|
||||
|
||||
} // namespace glcr
|
||||
Loading…
Add table
Add a link
Reference in a new issue