Template Function mrpt::containers::find_in_vector

Function Documentation

template<class T, class CONTAINER>
size_t mrpt::containers::find_in_vector(const T &value, const CONTAINER &vect)

Returns the index of the value “T” in the container “vect” (std::vector,std::deque,etc), or string::npos if not found.