mirror of
https://github.com/Ladebeze66/cpp-partie-2.git
synced 2025-12-16 14:07:54 +01:00
39 lines
1.4 KiB
C++
39 lines
1.4 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* easyfind.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/03/03 14:10:45 by fgras-ca #+# #+# */
|
|
/* Updated: 2024/03/03 14:58:04 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef EASYFIND_HPP
|
|
#define EASYFIND_HPP
|
|
|
|
#include <algorithm> //Pour std::find
|
|
#include <iterator> //Pour std::distance
|
|
#include <exception> //Pour std::exception
|
|
#include <list>
|
|
#include <vector>
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
#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<typename T>
|
|
void easyfind(T& container, int toFind);
|
|
|
|
#include "easyfind.tpp"
|
|
|
|
#endif |