- lib:
boost/libs/dynamic_bitset
- repo:
boostorg/dynamic_bitset
- commit:
684b6117
, 2017-04-16
<boost/dynamic_bitset.hpp>
- Argumented by
Block
type andAllocator
, by default areulong
andstd::allocator<Block>
- Wraps a
std::vector<Block>
for internal storage. - Member types
block_type
,allocator_type
,size_type
- Member constants
bits_per_block
andnpos
- Member
reference
provides|=
,&=
,^=
, and-=
(in addition tostd::bitset::reference
) - Constructors have additional allocator parameter
- Provides Block-range oriented constructor and
assign
,append
, andto_block_range
,from_block_range
functions. - Additionally provides move-constructor and move-assignment, and
swap
- Provides
vector
-like membersresize
,clear
,push_back
,pop_back
,empty
,size
- Provides capacity members
num_blocks
,max_size
,capacity
,reserve
,shrink_to_fit
- Provides set operations
-=
,-
,is_subset_of
,is_proper_subset_of
,intersects
- Provides lookup:
find_first
,find_next
- Provides ordering
<
etc.
Header <boost/dynamic_bitset/serialization.hpp>
Provide overload for serialize
.
<boost/config.hpp>
,<boost/detail/workaround.hpp>
.<boost/limits.hpp>
<boost/static_assert.hpp>
<boost/utility/addressof.hpp>
<boost/core/no_exceptions_support.hpp>
<boost/detail/iterator.hpp>
<boost/throw_exception.hpp>
<boost/move/move.hpp>
- if compiler supports rvalue-ref
<boost/pending/lowest_bit.hpp>
<boost/serialization/vector.hpp>
- for serialization support