I can understand the purpose of having a colon after constructor in Cpp. (What is this weird colon-member (" : ") syntax in the constructor?). But what is the purpose of the format, datatype colon value as following
unsigned AttrKind : 8;
I found this in private variables of a class. I have only a basic idea of Cpp and its not digesting for me.
If I am not wrong, its not a bit field as this variable is not declared inside a structure. its in the private section of a class