#ifndef UTIL_LISTUTIL_H_ #define UTIL_LISTUTIL_H_ #include namespace util { template bool contains(std::vector vec, const T& value) { return std::find(vec.begin(), vec.end(), value) != vec.end(); } } #endif // UTIL_LISTUTIL_H_