Code AnalysisHard 60s
noexcept move prevents copy fallback
struct Big { Big(Big&&); }; // move ctor, no noexcept
std::vector<Big> v; v.reserve(1); v.push_back(Big{});
When v reallocates later, why might the container copy instead of move?
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.