If I have a C++ struct, defining a 64bit data word such as..
struct SMyDataWord
{
int Name : 40;
int Colour : 24;
};
What does the : 40
syntax mean... does it mean that the first 40 bits are reserved for the Name and the remaining 24 bits for the Colour?
This is how it appears to be being used, but I've not come across it before.