Template Function otyca::vector_to_raw
Function Documentation
-
template<typename T>
void otyca::vector_to_raw(const std::vector<T> &src, T *des) Copies the elements from a vector to a raw array.
This function copies the elements of a vector into a raw array using
memcpy
.- Template Parameters:
T – The type of the elements in the vector (e.g., int, float).
- Parameters:
src – The source vector whose elements will be copied.
des – The destination raw array to store the elements.