Skip to content

num::copy_to

Defined in header <container/vector.hpp>

template <typename T>
void copy_to(const vec<T> &source, view<T> destination);  // (1)

template <typename T>
void copy_to(const vec<T> &source, std::vector<T> &destination);  // (2)

(1) Copy a vector into a view of the same length.

(2) Copy a vector into a std::vector of the same length.