title: What is the size of bitset in C++
body: <p>I want to know how bitset actually allocates memory. I read from some blog that it takes up memory in bits. However when i run the following code:
  <br></p>
  
  <pre><code>   bitset&lt;3&gt; bits = 001;
     cout&lt;&lt;sizeof(bits);
  </code></pre>
  
  <p>I get the output as 4. What is the explanation behind it?<br><br>
  Also is there a method to allocate space in bits in C++? </p>