Bit manipulation
suggest changeIn order to use std::bitset you will have to include <bitset> header.
#include <bitset>
std::bitset overloads all of the operator functions to allow the same usage as the c-style handling of bitsets.
References
Check if an integer is a power of 2
Bit Manipulation Application Small to Capital Letter
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents