dynamic_bitset bitset in C++'s standard template library doesn't support operations like resize though it's easy to implement. And this flaw has brought many disadvantages in efficiency. Therefore I wrote the toy dynamic_bitset(just for fun actually).