boost::dynamic_bitset::shrink_to_fit

Requests the bitset to reduce memory use by removing unused capacity.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

void
shrink_to_fit();

Note

It does not change the size of the bitset.

Throws

An allocation error if memory is exhausted (std::bad_alloc if allocator_type is a std::allocator).

Created with MrDocs