-2 表達式執行的這是我的理解是,j = i將++i之前在聲明中爲了與逗號C++ j = i, ++i;執行。 請問C++標準保證j = i在循環 for (auto i = std::next(begin), j = begin; i!= end; j= i, ++i)++i之前執行? 來源 2016-11-23 Catriel +0 https://en.wikipedia.org/wiki/Comma_operator – JGroven
2 逗號運算符introduces a sequence point,因此,此行爲由C++標準保證。 來源 2016-11-23 20:18:10 +1 爲什麼你必須回答一個明確的重複? – SergeyA
https://en.wikipedia.org/wiki/Comma_operator – JGroven