Function vector_range_copy (o2scl)¶
-
template<class dat_t>
std::vector<dat_t> o2scl::vector_range_copy(const std::vector<dat_t> &v, size_t start, size_t last)¶ Vector range function template for
std::vector
The element with index
start
in the original vector will become the first argument in the new vector, and the new vector will have sizelast-start
.Note
In this case, the return type is the same as the type of the first parameter.
Note
Unlike the ublas and pointer cases, this forces a copy.