Namespaces
Variants

std::flat_multiset<Key,Compare,KeyContainer>:: swap

From cppreference.net

void swap ( flat_multiset & other ) noexcept ;
(desde C++23)
Exchanges the contents of the container adaptor with those of other . Effectively calls
ranges::swap(compare, other.compare);
ranges::swap(c, other.c);

Contenidos

Parámetros

other - adaptador de contenedor para intercambiar el contenido con

Valor de retorno

(ninguno)

Excepciones

(ninguno)

Complejidad

Igual que el contenedor subyacente (normalmente constante).

Ejemplo

Véase también

especializa el algoritmo std::swap
(plantilla de función)