Namespaces
Variants

operator==,<=> (std::flat_multimap)

From cppreference.net

friend bool operator == ( const std:: flat_multimap & lhs,
const std:: flat_multimap & rhs ) ;
(1) (desde C++23)
friend synth - three - way - result < value_type >

operator <=> ( const std:: flat_multimap & lhs,

const std:: flat_multimap & rhs ) ;
(2) (desde C++23)
Compares the contents of the underlying containers of two container adaptors. The comparison is done by applying the corresponding operator to the underlying containers.

Contenidos

Parámetros

lhs, rhs - adaptadores de contenedor cuyos contenidos comparar

Valor de retorno

1) true si la comparación correspondiente produce true , false en caso contrario.
2) Resultado de la comparación triple en los contenedores subyacentes.

Complejidad

1) Constante si lhs y rhs tienen tamaños diferentes, de lo contrario lineal con respecto al tamaño del flat_multimap .
2) Lineal en el tamaño del contenedor.

Ejemplo