MCPcopy Create free account
hub / github.com/apache/fory / operator==

Method operator==

cpp/fory/util/float16_test.cc:1105–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103struct Float16Map {
1104 std::map<std::string, float16_t> named_values;
1105 bool operator==(const Float16Map &o) const {
1106 if (named_values.size() != o.named_values.size())
1107 return false;
1108 for (const auto &kv : named_values) {
1109 auto it = o.named_values.find(kv.first);
1110 if (it == o.named_values.end())
1111 return false;
1112 if (kv.second.to_bits() != it->second.to_bits())
1113 return false;
1114 }
1115 return true;
1116 }
1117 FORY_STRUCT(Float16Map, named_values);
1118};
1119

Callers

nothing calls this directly

Calls 4

findMethod · 0.80
endMethod · 0.80
sizeMethod · 0.45
to_bitsMethod · 0.45

Tested by

no test coverage detected