boost::dynamic_bitset::operator=

Copy assignment operator.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

dynamic_bitset&
operator=(dynamic_bitset const& b);

Description

This bitset becomes a copy of the bitset b. If the allocator propagates on copy assignment, *this takes the allocator of b; otherwise, it keeps its own. (That is what std::vector, the buffer used when AllocatorOrContainer is an allocator, does; if AllocatorOrContainer is a container, it depends on the copy assignment of that container.)

Throws

An allocation error if memory is exhausted (std::bad_alloc if allocator_type is a std::allocator). If an exception is thrown, *this is left empty.

(Required by CopyAssignable.)

Return Value

*this.

Parameters

Name

Description

b

The object to copy assign from

Postconditions

  • For all i in the range [0, x.size())], `( *this )[ i ] == b[ i ]`.

Created with MrDocs