boost::dynamic_bitset::dynamic_bitset

Move constructor.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

dynamic_bitset(dynamic_bitset&& src) noexcept(/* see-below */);

Description

Constructs a bitset that is the same as the bitset src, while using the resources from src. The allocator for this bitset is moved from the allocator in src.

Throws

Nothing, unless the move constructor of buffer_type throws (that of std::vector, the buffer used when AllocatorOrContainer is an allocator, doesn't). This constructor is noexcept if that move constructor is.

Exception specification

This function is potentially-throwing unless std::is_nothrow_move_constructible<buffer_type>::value.

Parameters

Name

Description

src

The object to move construct from

Postconditions

  • src.size() == 0 and src.num_blocks() == 0, i.e. src is left empty, and can be used like any other empty bitset.

Created with MrDocs