Namespaces
Variants

std::flat_map<Key,T,Compare,KeyContainer,MappedContainer>:: swap

From cppreference.net

void swap ( flat_map & 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.keys, other.c.keys);
ranges::swap(c.values, other.c.values);

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)