Usermode/libc++ - STL Fix string termination, silence map debug
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / algorithm
1 /*
2  * Acess2 C++ Library
3  * - By John Hodge (thePowersGang)
4  *
5  * string (header)
6  * - C++'s String type
7  */
8 #ifndef _LIBCXX_ALGORITHM_
9 #define _LIBCXX_ALGORITHM_
10
11 namespace std {
12
13 // Maximum
14 template <class T>
15 const T& max(const T& a, const T& b)
16 {
17         return (a<b) ? b : a;
18 }
19
20 template <class T, class Compare>
21 const T& max(const T& a, const T& b, Compare comp)
22 {
23         return comp(a, b) ? b : a;
24 }
25
26 template <class T>
27 const T& min(const T& a, const T& b)
28 {
29         return (a<b) ? a : b;
30 }
31
32 template <class T, class Compare>
33 const T& min(const T& a, const T& b, Compare comp)
34 {
35         return comp(a, b) ? a : b;
36 }
37
38 };      // namespace std
39
40 #endif
41
42 // vim: ft=cpp

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