Search:
Forum
General C++ Programming
declaration syntax
declaration syntax
Feb 15, 2017 at 2:17am UTC
ken1263
(1)
What does this declaration mean in a struct?
uint64_t tpid : 12;
Feb 15, 2017 at 2:25am UTC
lordseanington
(100)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs