BloombergLP::bdlc::swap

Exchange the value of a with that of b.

Synopsis

Declared in <bdlc_flathashmap.h>

template<
    class KEY,
    class VALUE,
    class HASH,
    class EQUAL>
void
swap(
    FlatHashMap<KEY, VALUE, HASH, EQUAL>& a,
    FlatHashMap<KEY, VALUE, HASH, EQUAL>& b);

Description

This function provides the no-throw exception-safety guarantee if the two objects were created with the same allocator and the basic guarantee otherwise.

Parameters

NameDescription
afirst map to exchange
bsecond map to exchange