in hessian2/object.hpp [512:528]
bool equal(const Object& o) const override {
if (o.type() != type()) {
return false;
}
ABSL_ASSERT(o.toUntypedList().has_value());
auto o_data = o.toUntypedList().value();
if (data_.size() != o_data.get().size()) {
return false;
}
for (size_t i = 0; i < data_.size(); i++) {
if (*data_[i] != *(o_data.get())[i]) {
return false;
}
}
return true;
}