Template Function contains(const std::vector<T>&, const T2&)
Defined in File stdutils.h
Function Documentation
-
template<typename T, typename T2>
bool contains(const std::vector<T> &vec, const T2 &value) Checks if a vector contains a given value.
- Template Parameters:
T – The type of elements in the vector.
T2 – The type of the value to search for.
- Parameters:
vec – The vector to search within.
value – The value to search for.
- Returns:
True if the value is found in the vector, false otherwise.