Bit manipulation
suggest changeIn order to use std::bitset you have to include the <bitset> header.
#include <bitset>
std::bitset overloads the bitwise operators so they can be used much as on unsigned integers.
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