Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | container‎ | flat multimap
Revision as of 16:54, 4 February 2024 by Space Mission (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
friend bool operator==( const std::flat_multimap& lhs,
                        const std::flat_multimap& rhs );
(1) (since C++23)
friend synth-three-way-result<value_type>

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

                 const std::flat_multimap& 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.

Contents

[edit] Parameters

lhs, rhs - container adaptors whose contents to compare

[edit] Return value

1) true if the corresponding comparison yields true, false otherwise.
2) Result of three-way comparison on underlying containers.

[edit] Complexity

1) Constant if lhs and rhs are of different size, otherwise linear in the size of the flat_multimap.
2) Linear in the size of the container.

[edit] Example