6f0574433a3404f37bed9040a7b67b5c991f10bf
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / utility
1 /*
2  * Acess2 C++ Library
3  * - By John Hodge (thePowersGang)
4  *
5  * string (header)
6  * - C++'s String type
7  */
8 #ifndef _LIBCXX_UTILITY_
9 #define _LIBCXX_UTILITY_
10
11 namespace std {
12
13 template <class T1, class T2>
14 class pair
15 {
16 public:
17         typedef T1      first_type;
18         typedef T2      second_type;
19         
20         first_type      first;
21         second_type     second;
22         
23         pair()
24         {
25         }
26         template <class U, class V>
27         pair(const pair<U,V>& pr):
28                 first (pr.first),
29                 second(pr.second)
30         {
31         }
32         pair(const first_type& a, const second_type& b):
33                 first (a),
34                 second(b)
35         {
36         }
37         // operator = is implicit
38 };
39
40 template <class T1, class T2>   
41 bool operator== (const pair<T1,T2>& lhs, const pair<T1,T2>& rhs) {
42         return lhs.first == rhs.first && lhs.second == rhs.second;
43 }
44 template <class T1, class T2>   
45 bool operator!= (const pair<T1,T2>& lhs, const pair<T1,T2>& rhs) {
46         return !(lhs == rhs);
47 }
48
49 };      // namespace std
50
51 #endif
52
53 // vim: ft=cpp
54

UCC git Repository :: git.ucc.asn.au