What is the difference between bit-vector and bitset container of stl ? Please explain.
To my understanding bitset is the implementation of the concept of bitvector am I right or wrong? What are the other ways to implement bit vector?
What is the difference between bit-vector and bitset container of stl ? Please explain.
Share
bit_vectorhas the same interface as anstd::vector, and is optimised for space. It not a part of standard C++. This documentation claims it is close to an STLvector<bool>, which presumably is quite close to a standard C++std::vector<bool>.std::bitset is fixed size, and has a different interface.