quote:Original post by Zipsterbitset
still uses bool, only it''s specifically designed for bit operations. Although the exact implementation should be of no consequence since it''s guaranteed that the objects stored will behave like bits.
[edited by - Zipster on July 5, 2003 3:47:45 PM]
At least in vc++ .net, bitset stores bits as bits, and not as booleans. However, they are stored in groups of 4 bytes (the size of a long), so a bitset of, for example, 2 bits will unfortunately take up 4 bytes. Though, a bitset of 100 bits will only take up 16 bytes.