-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