1 | #ifndef RXVT_STL_H |
1 | #ifndef RXVT_STL_H |
2 | #define RXVT_STL_H |
2 | #define RXVT_STL_H |
3 | |
3 | |
4 | template<typename T> static inline T min (T a, long b) { return a < b ? a : b; } |
4 | template<typename T, typename U> static inline T min (T a, U b) { return a < b ? a : b; } |
5 | template<typename T> static inline T max (T a, long b) { return a > b ? a : b; } |
5 | template<typename T, typename U> static inline T max (T a, U b) { return a > b ? a : b; } |
6 | |
6 | |
7 | #include "simplevec.h" |
7 | #include "simplevec.h" |
8 | |
8 | |
9 | template<typename T> |
9 | template<typename T> |
10 | struct vector : simplevec<T> |
10 | struct vector : simplevec<T> |
11 | { |
11 | { }; |
12 | }; |
|
|
13 | |
12 | |
14 | #if 0 |
13 | #if 0 |
15 | template<typename T> |
14 | template<typename T> |
16 | struct rxvt_vec : simplevec<void *> { |
15 | struct rxvt_vec : simplevec<void *> { |
17 | typedef T *iterator; |
16 | typedef T *iterator; |