Assuming a std::map<T, std::size_t>
, what is the result of the insertion below, assuming x
does not exist yet ? unspecified, undefined behavior or well known result ?
map[x] = map.size();
I am lacking of imagination to summarize the question in the title, if someone has a better idea for it, please update, thanks.
To my comprehension of c++, the sequence point is only set at the ;
, so a compiler can do whatever he wants and it should be unspecified behavior, but would appreciate if someone can pin point the standard quote on it.