struct S {
char a; // location #1
int b:5, // location #2
int c:11,
int :0, // note: :0 is "special"
int d:8; // location #3
struct {int ee:8;} e; // location #4
};
似乎结构体的 int :0 成员变量不占用任何内存空间,并且标记为://注意: :0 是"特殊的"
有人知道这里 int :0 的特殊用途吗?谢谢
PS: 代码示例引自http://www.stroustrup.com/C++11FAQ.html#memory-model