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

Name

Description

a

first object to exchange

b

second object to exchange

Created with MrDocs