boost::swap

Exchanges the contents of a and b.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

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

Description

Equivalent to a.swap( b ).

Throws

The same as a.swap( b ). This function is noexcept if and only if a.swap( b ) is.

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