boost::to_block_range

Writes the bits of the bitset into the iterator result, a block at a time.

Synopses

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

template<
    typename B,
    typename A,
    typename BlockOutputIterator>
void
to_block_range(
    dynamic_bitset<B, A> const& b,
    BlockOutputIterator result);

Writes the bits of the bitset into the iterator result, a block at a time.

template<
    typename Block,
    typename AllocatorOrContainer,
    typename BlockOutputIterator>
void
to_block_range(
    dynamic_bitset<Block, AllocatorOrContainer> const& b,
    BlockOutputIterator result);

Parameters

Name Description

b

The bitset of which to copy the bits.

result

The start of the range to write to.

Preconditions

  • The type BlockOutputIterator must be a model of LegacyOutputIterator and its value_type must be the same type as Block. Furthermore, the size of the output range must be greater than or equal to b.num_blocks().

Created with MrDocs