d07 ex00 ajout 1 test

This commit is contained in:
hugogogo
2022-03-10 17:52:05 +01:00
parent a8b1a6af1b
commit 3433fafd87
5 changed files with 68 additions and 14 deletions

View File

@@ -1,28 +0,0 @@
#ifndef TEMPLATES_HPP
# define TEMPLATES_HPP
template< typename T >
void swap(T &a, T &b) {
T tmp;
tmp = a;
a = b;
b = tmp;
}
template< typename T >
T const & min(T const &a, T const &b) {
if (a < b)
return a;
return b;
}
template< typename T >
T const & max(T const &a, T const &b) {
if (a > b)
return a;
return b;
}
#endif