OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #ifndef SRC_VM_PAIR_H_ | 5 #ifndef SRC_VM_PAIR_H_ |
6 #define SRC_VM_PAIR_H_ | 6 #define SRC_VM_PAIR_H_ |
7 | 7 |
8 namespace fletch { | 8 namespace dartino { |
9 | 9 |
10 // Basically the same as a std::pair, but we don't want to rely on that | 10 // Basically the same as a std::pair, but we don't want to rely on that |
11 // being present on a given platform. | 11 // being present on a given platform. |
12 template <typename First, typename Second> | 12 template <typename First, typename Second> |
13 class Pair { | 13 class Pair { |
14 public: | 14 public: |
15 Pair(First f, Second s) : first(f), second(s) {} | 15 Pair(First f, Second s) : first(f), second(s) {} |
16 | 16 |
17 First first; | 17 First first; |
18 Second second; | 18 Second second; |
19 }; | 19 }; |
20 | 20 |
21 } // namespace fletch | 21 } // namespace dartino |
22 | 22 |
23 #endif // SRC_VM_PAIR_H_ | 23 #endif // SRC_VM_PAIR_H_ |
OLD | NEW |