24 bool contains(
const T& value,
const std::set<T>& container)
26 return container.count(value) != 0;
31 bool contains(
const T& value,
const std::vector<T>& container)
33 return std::find(container.begin(), container.end(), value) != container.end();
37 template<
typename T,
typename... Args>
38 bool contains(
const T& value,
const Args&... args)
40 return ((value == args) || ...);