ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/src/estl.h
(Generate patch)

Comparing libptytty/src/estl.h (file contents):
Revision 1.1 by sf-exg, Sat Jan 21 13:40:29 2012 UTC vs.
Revision 1.2 by sf-exg, Sat Jan 21 13:44:38 2012 UTC

1#ifndef ESTL_H
2#define ESTL_H
3
1#include <stdlib.h> 4#include <stdlib.h>
2#include <string.h> 5#include <string.h>
3 6
4template<typename T, typename U> static inline T min (T a, U b) { return a < (T)b ? a : (T)b; } 7template<typename T, typename U> static inline T min (T a, U b) { return a < (T)b ? a : (T)b; }
5template<typename T, typename U> static inline T max (T a, U b) { return a > (T)b ? a : (T)b; } 8template<typename T, typename U> static inline T max (T a, U b) { return a > (T)b ? a : (T)b; }
272 275
273template<typename T> 276template<typename T>
274struct vector : simplevec<T> 277struct vector : simplevec<T>
275{ 278{
276}; 279};
280
281#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines