Template Function Jet::Utilities::InVector

Function Documentation

template<class T>
inline bool Jet::Utilities::InVector(const T &e, const std::vector<T> &v)

Reports whether the given element is in the provided vector.

Template Parameters

T – Type of the elements in the vector.

Parameters
  • e – Element being searched for.

  • v – Vector to be searched.

Returns

True if the element is in the vector.