/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* easyfind.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos #include template typename T::iterator easyfind(T &array, int nb) { for(typename T::iterator it = array.begin(); it != array.end(); it++) { if (*it == nb) { return (it); } } throw std::exception(); }