> [I particularly like that way that if I make an array of 4 million
> Boolean values, each one takes up exactly 1 *bit* of RAM. And yet, the
> interface is identical to any other kind of array...]
C++ STL vector template class has a specialization for 'bool' that uses
1 bit per element too. That is, a vector<bool> takes 1 bit per element.
Post a reply to this message
|