Comment Comment by bmohlenhoff std::bitset is also a good choice if the number of desired bits is known at compile time parent bmohlenhoff 10 years ago