boost::dynamic_bitset::max_size

Returns the maximum size of a bitset of this type.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

size_type
max_size() const noexcept;

Throws

Nothing.

[The semantics of this function could change slightly when] lib issue 197 will be closed.]

Return Value

The maximum size of a dynamic_bitset object having the same type as *this: the number of bits in the maximum number of blocks that the underlying container can hold or, if smaller, the largest multiple of bits_per_block that both size_type and difference_type can represent. Thanks to the bound on difference_type, the distance between any two iterators into the same bitset is representable as a difference_type. Note that if any dynamic_bitset operation causes size() to exceed max_size() then the behavior is undefined.

Created with MrDocs