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> |