[libaxx] Add algorithm

Only contains a super simple min and max implementation
This commit is contained in:
Romain Goyet
2020-04-12 15:38:03 -04:00
committed by Ecco
parent 1839a91982
commit 77ee5126e1

18
libaxx/include/algorithm Normal file
View File

@@ -0,0 +1,18 @@
#ifndef LIBAXX_ALGORITHM
#define LIBAXX_ALGORITHM
namespace std {
template<class T>
inline const T & min(const T & a, const T & b ) {
return (b < a) ? b : a;
}
template<class T>
inline const T & max(const T & a, const T & b ) {
return (b > a) ? b : a;
}
}
#endif