Swaps the contents of two flat_hash_set containers.

Synopsis

Declared in <absl/container/flat_hash_set.h>

template<
    typename T,
    typename H,
    typename E,
    typename A>
void
swap(
    flat_hash_set<T, H, E, A>& x,
    flat_hash_set<T, H, E, A>& y) noexcept(noexcept(x.swap(y)));

Parameters

Name

Description

x

The first container to swap.

y

The second container to swap.

Created with MrDocs