absl::swap

Swaps the contents of two flat_hash_map containers.

Synopsis

Declared in <absl/container/flat_hash_map.h>

template<
    typename K,
    typename V,
    typename H,
    typename E,
    typename A>
void
swap(
    flat_hash_map<K, V, H, E, A>& x,
    flat_hash_map<K, V, H, E, A>& y) noexcept(noexcept(x.swap(y)));

Parameters

NameDescription
xThe first container to swap.
yThe second container to swap.