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