| 872 | } |
| 873 | |
| 874 | friend bool operator==(const array_map& lhs, const array_map& rhs) { |
| 875 | if (lhs.size() != rhs.size()) { |
| 876 | return false; |
| 877 | } |
| 878 | |
| 879 | for (auto it = lhs.cbegin(); it != lhs.cend(); ++it) { |
| 880 | const auto it_element_rhs = rhs.find_ks(it.key(), it.key_size()); |
| 881 | if (it_element_rhs == rhs.cend() || |
| 882 | it.value() != it_element_rhs.value()) { |
| 883 | return false; |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | return true; |
| 888 | } |
| 889 | |
| 890 | friend bool operator!=(const array_map& lhs, const array_map& rhs) { |
| 891 | return !operator==(lhs, rhs); |