/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* whatever.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: fgras-ca +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/02 18:56:24 by fgras-ca #+# #+# */ /* Updated: 2024/03/02 19:05:10 by fgras-ca ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef WHATEVER_HPP #define WHATEVER_HPP #define RESET "\033[0m" #define BLACK "\033[30m" #define RED "\033[31m" #define GREEN "\033[32m" #define YELLOW "\033[33m" #define BLUE "\033[34m" #define MAGENTA "\033[35m" #define CYAN "\033[36m" #define WHITE "\033[37m" template void swap(T& a, T& b) { T temp = a; a = b; b = temp; } template T const &min(T const &a, T const &b) { return (a < b) ? a : b; } template T const &max(T const &a, T const &b) { return (a > b) ? a : b; } #endif