阅读背景:

C ++访问部分可以交错吗?

来源:互联网 

The C++ standard imposes an ordering on class member variables in memory. It says that the addresses of member variables have to increase in the order of declaration, but only inside one access section. Very specifically, this does not seem to prevent compilers from laying out access sections in an interleaved way. For example:The C++ standard imposes an ordering on class m




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: