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

> C++ Atlas: `cppatlas.com/w/cpp/container/flat_multiset/operator_cmp` | Source: https://en.cppreference.com/w/cpp/container/flat_multiset/operator_cmp | Domain: Containers | Standards: C++23

## Official Specification Summary (cppreference)

```cpp
friend bool operator==( const std::flat_multiset& lhs,
                        const std::flat_multiset& rhs ); // (1) (since C++23)

friend synth-three-way-result<value_type>
    operator<=>( const std::flat_multiset& lhs,
                 const std::flat_multiset& rhs ); // (2) (since 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.

> Note: This section is incomplete Reason: For "flat" containers only: copy parts of Template:cpp/container/operator_cmp

### Parameters

- `lhs, rhs` - container adaptors whose contents to compare

  > Note: This section is incomplete Reason: Add named requirements to "flat" container inner types

### Return value

1) `true` if the corresponding comparison yields `true`, `false` otherwise.

2) Result of three-way comparison on underlying containers.

### Complexity

1) Constant if `lhs` and `rhs` are of different size, otherwise linear in the size of the `flat_multiset`.

2) Linear in the size of the container.

### Example

> Note: This section is incomplete Reason: no example

---
Attribution: content from https://en.cppreference.com/w/cpp/container/flat_multiset/operator_cmp (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.