title: How do I check if vector<bool> is actually a vector of bits and not bytes?
body: <p>I need to store a dynamic array of bits.<br>
  <a href="http://www.cplusplus.com/reference/vector/vector-bool/" rel="nofollow">The C++ reference page on vector&lt; bool ></a> has the following information:</p>
  
  <blockquote>
    <p>The storage is not necessarily an array of <code>bool</code> values, but the library implementation may optimize storage so that each value is stored in a single bit.</p>
  </blockquote>
  
  <p>How do I make sure that my program that uses <code>vector&lt;bool&gt;</code> does in fact store bits in a vector instead of boolean values (bytes)?</p>