Function vector_search (o2scl)

O2scl : Function List

template<class vec_t, class data_t>
bool o2scl::vector_search(size_t n, const vec_t &x, data_t x0, size_t &i)

Search for x0 in the first n elements of x, returning false if not found.

template<class vec_t, class data_t>
bool o2scl::vector_search(const vec_t &x, data_t x0, size_t &i)

Search for x0 in x, returning false if not found.