boost::swap

swap overloads

Synopses

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

Exchanges the values of the bits which a and b refer to.

void
swap(
    reference a,
    reference b) noexcept;

Exchanges the contents of a and b.

template<
    typename Block,
    typename AllocatorOrContainer>
void
swap(
    dynamic_bitset<Block, AllocatorOrContainer>& a,
    dynamic_bitset<Block, AllocatorOrContainer>& b) noexcept(noexcept(a.swap(b)));

Parameters

Name

Description

a

The bitset to exchange the contents of with b.

b

The bitset to exchange the contents of with a.

Preconditions

  • The same as for a.swap( b ).

Created with MrDocs