Quick Q: Why does std::array have a move constructor? -- StackOverflow
Quick A: Here are two hints...
-
Hint:
array<string>
. -
Hint 2:
array<unique_ptr<X>>
.
Today on SO:
Should std::array have move constructor?
Moving can't be implemented efficiently (O(1)) on
std::array
, so why does it have move constructor?