title: How can I use bitset in map?
body: <p>I am trying to store 0 to 25 numbers along with its 5 bit representation using bitset.<br />
  Here is the code :</p>
  <pre><code>int main()
  {
     
     map&lt;int, bitset&lt;5&gt; &gt; myMap;
     myMap[0] = 00000;
     myMap[1] = 00001;
     myMap[2] = 00010;
     myMap[3] = 00011;
  
     // Like this I have stored 0 to 25 numbers.     
      
     auto pos = myMap.find(2);
     cout&lt;&lt; pos-&gt; second &lt;&lt;endl;  // output is 01000
     
     pos = myMap.find(3);
     cout&lt;&lt; pos-&gt;second &lt;&lt;endl;   // output is 01001
  
     pos = myMap.find(15);
     cout&lt;&lt; pos-&gt;second &lt;&lt;endl;   // output is 01001
  
     pos = myMap.find(12);
     cout&lt;&lt; pos-&gt;second &lt;&lt;endl;   // output is 00000
     return 0;
  }  
  </code></pre>
  <p>It seems that my output is wrong.<br />
  Where I am wrong ?</p>