swap

Exchange the contents of two containers.

Synopsis

Declared in <util/bitdeque.h>

void
swap(
    bitdeque& b1,
    bitdeque& b2) noexcept;

NOTE

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

Parameters

NameDescription
b1First container to swap.
b2Second container to swap.