Namespaces
Variants

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

From cppreference.net

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

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

const std:: flat_multiset & 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 son de diferente tamaño, de lo contrario lineal con respecto al tamaño del flat_multiset .
2) Lineal en el tamaño del contenedor.

Ejemplo