In C ++ 11, all the movement of semantics, etc., one may wonder what can be really moved. Arrays are an example of this. Is it possible to move every element of raw arrays,
int array1[8]; int array2[8]; array1[0] = std::move(array2[0]);
STD :: arrays,
std::array<int, 8> array1; std::array<int, 8> array2; array1[0] = std::move(array2[0]);
and std :: vectors
std::vector<int> array1; std::vector<int> array2; array1[0] = std::move(array2[0]);
separately?
source share