To define a bitset with 16 bits, it will be like:
std::bitset<16> bs(0x123);
If let me design a bitset class, I will probably make it like this:
mine::bitset bs(16, 0x123);
Is there any reason that std::bitset is implemented by template?
Is this a good pattern that we should apply in some situations?