m;
m[0] = m.size();
Есть ли гарантия что size() выполнен до оператора []?
Читаю http://www.enseignement.polytechnique.fr/informatique/INF478/docs/Cpp/en/cpp/language/eval_order.html
2) The value computations (but not the side-effects) of the operands to any operator are sequenced before the value computation of the result of the operator (but not its side-effects).
3) When calling a function (whether or not the function is inline, and whether or not explicit function call syntax is used), every value computation and side effect associated with any argument expression, or with the postfix expression designating the called function, is sequenced before execution of every expression or statement in the body of the called function.
да, конечно
Да, есть
Обсуждают сегодня