BloombergLP::bdlc::swap

Exchange the contents of the two maps.

Synopsis

Declared in <bdlc_flathashmap.h>

template<
    class K,
    class V,
    class H,
    class E>
void
swap(
    FlatHashMap<K, V, H, E>& a,
    FlatHashMap<K, V, H, E>& b);

NOTE

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

Parameters

NameDescription
afirst map
bsecond map