Skip to main content

Practice · 1 of 2

noexcept Unlocks Moving Growth

CHALLENGE
Difficulty: advanced+25 XP

Complete Buffer's move constructor and move assignment **noexcept** using std::exchange. The graded check grows a std::vector<Buffer> to 8 elements with push_back and requires the copy counter to stay at zero — the proof that vector relocates by move.

Back to lesson: Practice: noexcept and Ownership Rules