#include <boost/bit_logic/bit_vector.hpp> void reserve ( size_type num ) ;
The reserve() function allocates enough memory so any resizing of the bit_vector up to the new size does not allocate memory.