DataProtocol:
If you really need to save memory, you could look into some simple compression techniques. Just decompress the maps as you need them.
If that's no good, vector<bool> (as suggested by Jingo) is a good alternative. In most implementations, a vector of booleans is actually a stored as a bitstring in memory.
Failing that, you're stuck with the bitwise and/or operators.
quote:Original post by rypyr
oh gad, don't you people have anything better to do than nitpick each others comments?
One could ask you the same question
[edited by - glassJAw on January 23, 2004 5:59:06 PM]