boost::dynamic_bitset::append
Appends a range of blocks to *this.
Synopsis
Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>
template<typename BlockInputIterator>
void
append(
BlockInputIterator first,
BlockInputIterator last);
Description
This member provides the same end result as the following code, but is typically more efficient.
for (; first != last; ++first) {
append( *first );
}
So, each element of the range is converted to Block, and makes a whole block, as with the constructor from a range of blocks.
Throws
An allocation error if memory is exhausted (std::bad_alloc if allocator_type is a std::allocator), or any exception thrown by an operation of BlockInputIterator. If an exception is thrown, *this is left unchanged, except that its capacity may have increased.
Preconditions
-
The
BlockInputIteratortype must be a model of LegacyInputIterator and itsvalue_typemust be implicitly convertible toBlockand be neitherboolnor a floating‐point type (astatic_assertchecks this).
Created with MrDocs