C++ Programming - Unnamed Bit-Field

An unnamed bit field is used for padding to conform to external imposed layouts.

Unnamed bit-field with a width of zero specifies aloignment of the next bit field at an allocation unit boundary.

struct becks {
...
int :3 //three bit field
...
}

Labels:


About this entry