Bitfields in C++
Posted Dec 10, 2007 21:31 UTC (Mon) by
pr1268 (subscriber, #24648)
In reply to:
Here's an idea by jzbiciak
Parent article:
Memory access and alignment
Bjarne Stroustrup discusses a C++ Standard Template Library (STL) vector of bools (The C++ Programming Language, Special Edition, p. 458) - this is designed to overcome the wasted space of a 1-bit data structure taking up 16, 32, or 64 bits of memory.
(
Log in to post comments)