c++ - Order of calls and side effects -
consider operation :
int = f1(mystream)*f2(mystream)+f3(mystream);
where f1, f2, f3 of following form :
int f(std::istream&)
or
int f(std::ostream&)
do have guarantee f1
, f2
, f3
executed in order ?
no. individual subexpressions not sequenced respect 1 another. guaranteed 1 function call completes before starts, order of 3 function calls indeterminate.
Comments
Post a Comment