I recently asked a question on Programmers regarding reasons to use manual bit manipulation of primitive types over std::bitset.
From that discussion I have concluded that the main reason is its comparatively poorer performance, although I'm not aware of …
For bool, it's 8 bit while has only true and false, why don't they make it single bit.
And I know there's bitset, however it's not that convenient, and I just wonder why?
I want to make a bitset in C++. I did a bit of research. All examples I found where like this:
bitset<6> myBitset;
// do something with it
But I don't know the size of the bitset when I …