declaration syntax

What does this declaration mean in a struct?

uint64_t tpid : 12;
It is part of what's called a bitfield. Basically, it means that the integer tpid takes up and stores 12 bits. I suggest doing some reading on bitfields, using that term as they are part of the standard.
Topic archived. No new replies allowed.