This recipe assumes you are familiar with both std::vector and std::bitset. If you didn’t read the previous recipes, Using vector as a default container and Using bitset for fixed-size sequences of bits, you should do that before continuing.
The vector<bool> class is available in the std namespace in the <vector> header.