serverglen edited a comment on issue #1340:
URL: https://github.com/apache/incubator-brpc/issues/1340#issuecomment-772182688
struct xxx {
};
需要实现:
1. 重载==运算符
bool operator==(const struct xxx& obj) const {
// TODO
}
2. 实现自定义的hash函数
template <>
struct butil::DefaultHasher<struct xxx> {
std::size_t operator() (const struct xxx& obj) {
// TODO
}
};
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]