#pragma once #include #include template int &easyfind(T &container, int value) { typename T::iterator it = std::find(container.begin(), container.end(), value); if (it != container.end()) { return *it; } else { throw std::out_of_range("Value not found"); } }