BloombergLP::bslalg::swap

Efficiently exchange the values of two HashTableAnchor objects.

Synopsis

Declared in <bslalg_hashtableanchor.h>

void
swap(
    HashTableAnchor& a,
    HashTableAnchor& b);

Description

Efficiently exchange the values of the specified a and b objects. This function provides the no-throw exception-safety guarantee. The behavior is undefined unless the two objects were created with the same allocator.

Parameters

NameDescription
afirst object to exchange
bsecond object to exchange