operator==,<=>(std::flat_map)
From cppreference.com
friend bool operator==( const std::flat_map& lhs, const std::flat_map& rhs ); |
(1) | (since C++23) |
friend synth-three-way-result<value_type> operator<=>( const std::flat_map& lhs, |
(2) | (since C++23) |
This section is incomplete Reason: For "flat" containers only: copy parts of Template:cpp/container/operator_cmp |
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_map
.2)
Linear in the size of the container.
[edit] Example
This section is incomplete Reason: no example |