boost::dynamic_bitset::dynamic_bitset
Copy constructor.
Synopsis
Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>
dynamic_bitset(dynamic_bitset const& b);
Description
Constructs a bitset that is a copy of the bitset b. The underlying buffer is copy constructed from that of b, so, if AllocatorOrContainer is an allocator, the allocator of this bitset is std::allocator_traits< allocator_type >::select_on_container_copy_construction( b.get_allocator() ). For most allocators, that's a copy of b.get_allocator(), but, e.g., for a std::pmr::polymorphic_allocator, it's an allocator which uses the default memory resource. To choose the allocator of the copy, use the allocator‐extended copy constructor.
Throws
An allocation error if memory is exhausted (std::bad_alloc if allocator_type is a std::allocator).
(Required by CopyConstructible.)
Postconditions
-
For all i in the range
[0, b.size())], `( *this )[ i ] == b[ i ]`.
Created with MrDocs