Function vector_reverse (o2scl)

O2scl : Function List

template<class vec_t, class data_t>
void o2scl::vector_reverse(size_t n, vec_t &data)

Reverse the first n elements of a vector.

If n is zero, this function will silently do nothing.

template<class vec_t, class data_t>
void o2scl::vector_reverse(vec_t &data)

Reverse a vector.

If the size() method returns zero, this function will silently do nothing.