{"height":"190","type":"rich","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/shurabaP/","blog_title":"\u30d5\u30a7\u30eb\u30de\u30fc\u30bf","image_url":null,"version":"1.0","title":"qHash \u95a2\u6570\u3068\u540d\u524d\u7a7a\u9593","published":"2015-06-06 00:15:32","url":"https://shurabap.hatenablog.jp/entry/2015/06/06/001532","categories":["C++","Qt"],"blog_url":"https://shurabap.hatenablog.jp/","width":"100%","author_name":"shurabaP","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshurabap.hatenablog.jp%2Fentry%2F2015%2F06%2F06%2F001532\" title=\"qHash \u95a2\u6570\u3068\u540d\u524d\u7a7a\u9593 - \u30d5\u30a7\u30eb\u30de\u30fc\u30bf\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6982\u8981 \u540d\u524d\u7a7a\u9593\u5185\u3067\u5b9a\u7fa9\u3057\u305f\u30af\u30e9\u30b9\u306e qHash \u95a2\u6570\u306e\u5b9a\u7fa9\u3067\u624b\u3072\u3069\u3044\u7f60\u3092\u8e0f\u3093\u3060\u306e\u3067\u66f8\u3044\u3066\u304a\u304f\u3002 \u7f60 \u3053\u308c\u306f\u30c0\u30e1\u306a\u3093\u3060\u3063\u3066\u3055\u3002 namespace hoge { class Hoge { public: int foo; } } bool operator == (const hoge::Hoge &left, const hoge::Hoge &right) { return left.foo == right.foo; } unsigned int qHash(const hoge::Hoge& h) { return qHash(h); } \u3053\u3046\u3059\u308b\u3068\u884c\u3051\u308b\u3002 namespace hoge\u2026"}