boost::from_block_range

Reads blocks from the iterator range into the bitset.

Synopses

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

template<
    typename BlockIterator,
    typename B,
    typename A>
void
from_block_range(
    BlockIterator first,
    BlockIterator last,
    dynamic_bitset<B, A>& result);

Reads blocks from the iterator range into the bitset.

template<
    typename BlockIterator,
    typename Block,
    typename AllocatorOrContainer>
void
from_block_range(
    BlockIterator first,
    BlockIterator last,
    dynamic_bitset<Block, AllocatorOrContainer>& result);

Parameters

Name Description

first

The start of the range.

last

The end of the range.

result

The resulting bitset.

Preconditions

  • The type BlockIterator must be a model of LegacyInputIterator and its value_type must be the same type as Block. The size of the iterator range must be less than or equal to b.num_blocks().

Created with MrDocs