title: Is bitset faster than an array of bools?
body: <p>C++ provides the <a href="http://www.cplusplus.com/reference/bitset/bitset/" rel="noreferrer"><code>bitset</code></a> to store bits. As per the reference, the class emulates an array of <code>bool</code> elements, but optimized for space allocation. In which cases one should be preferred to the other?</p>