I'm not sure how to properly explain this, but I'm looking for a way to automatically set the size or number of the bitset<size> automatically
Example
cout << bitset<8>(7) << endl;
outputs with a fixed number of bits
0000 0111
I want to automatically output with variable number of bits like outputting 111 and 11001 instead of using the fixed bits.
Basically I want to cut the 0's in front when it's not used