If you have vector assignment in your code, use Swap member function of std::vector, if you will not need source vector anymore it will save you one memory allocation
void SetPath_Dirty(vec3& path) {
m_path.swap(path);
}
If you have vector assignment in your code, use Swap member function of std::vector, if you will not need source vector anymore it will save you one memory allocation
void SetPath_Dirty(vec3& path) {
m_path.swap(path);
}