BloombergLP::bdlc::FlatHashMap::swap

Exchange the value of this map with that of other.

Synopsis

Declared in <bdlc_flathashmap.h>

void
swap(FlatHashMap& other);

Description

Exchange the value of this object as well as its hasher and equality functors with those of the specified other object. The behavior is undefined unless this object was created with the same allocator as other.

Parameters

NameDescription
othermap to exchange contents with