You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
1.1 KiB

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/05 08:05:52 by narnaud #+# #+# */
/* Updated: 2022/09/05 08:13:08 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
template <class T>
void swap (T &t1, T &t2) {
T tmp;
tmp = t1;
t1 = t2;
t2 = tmp;
}
template <class T>
T min (T &t1, T &t2) {
return (t1 < t2 ? t1 : t2);
}
template <class T>
T max (T &t1, T &t2) {
return (t1 > t2 ? t1 : t2);
}