title: How to store a bit-array in C++?
body: <p>What's the best way to store a bit array in C++ (no Boost, just standard containers), representing, for example, a volume allocation bitmap?</p>
  <p>I thought <code>std::vector&lt;bool&gt;</code> was a great idea, but <a href="http://www.informit.com/guides/content.aspx?g=cplusplus&amp;seqNum=350" rel="noreferrer">apparently it's Evil and deprecated</a>, so is there a better choice?</p>
  <h3>Also:</h3>
  <p>If I have a byte array in memory, how would I go about copying them to the recommended container?<br />
  (I'm having trouble figuring this out for <code>vector&lt;bool&gt;</code>.)</p>