MCPcopy Create free account
hub / github.com/ablab/spades / operator==

Method operator==

ext/include/tsl/array-hash/array_map.h:874–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 7

sizeMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45
find_ksMethod · 0.45
keyMethod · 0.45
key_sizeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected