Code AnalysisBeginner 60s
initializer_list copied in range-for
std::initializer_list<int> il = {1,2,3};
for (auto x : il) { }
Why is taking il by reference in the loop the usual advice for large element types?
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.