boost::swap

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

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

void
swap(
    reference a,
    reference b) noexcept;

This function is a hidden friend of reference, declared only inside that class: it can be found only through argument-dependent lookup.

Description

This is found by argument‐dependent lookup, so it is used by swap( b[ i ], b[ j ]) and by the standard algorithms which swap elements. See the class description.

Parameters

Name

Description

a

A proxy class to simulate lvalues of bit type.

b

A proxy class to simulate lvalues of bit type.

Created with MrDocs