BloombergLP::bdlc::swap

Exchange the contents of the two sets.

Synopsis

Declared in <bdlc_flathashset.h>

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

NOTE

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

Parameters

NameDescription
afirst set to exchange
bsecond set to exchange