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