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?

Add a Comment

Comments are closed.

Comments (1)

0 0

Matt Williams said on Aug 8, 2013 03:42 AM:

The link here doesn't work.