Lines Matching refs:hash_value
36 friend hash_code hash_value(const NonPOD &obj) { in hash_value() function
66 EXPECT_EQ(hash_value(42), hash_value(x)); in TEST()
67 EXPECT_EQ(hash_value(42), hash_value(TE_Foo)); in TEST()
68 EXPECT_NE(hash_value(42), hash_value(y)); in TEST()
69 EXPECT_NE(hash_value(42), hash_value(TE_Bar)); in TEST()
70 EXPECT_NE(hash_value(42), hash_value(p)); in TEST()
71 EXPECT_EQ(hash_value(71), hash_value(i)); in TEST()
72 EXPECT_EQ(hash_value(71), hash_value(ci)); in TEST()
73 EXPECT_EQ(hash_value(71), hash_value(vi)); in TEST()
74 EXPECT_EQ(hash_value(71), hash_value(cvi)); in TEST()
75 EXPECT_EQ(hash_value(c), hash_value('x')); in TEST()
76 EXPECT_EQ(hash_value('4'), hash_value('0' + 4)); in TEST()
77 EXPECT_EQ(hash_value(addr), hash_value(&y)); in TEST()
81 EXPECT_EQ(hash_combine(42, 43), hash_value(std::make_pair(42, 43))); in TEST()
82 EXPECT_NE(hash_combine(43, 42), hash_value(std::make_pair(42, 43))); in TEST()
83 EXPECT_NE(hash_combine(42, 43), hash_value(std::make_pair(42ull, 43ull))); in TEST()
84 EXPECT_NE(hash_combine(42, 43), hash_value(std::make_pair(42, 43ull))); in TEST()
85 EXPECT_NE(hash_combine(42, 43), hash_value(std::make_pair(42ull, 43))); in TEST()
90 hash_value(std::make_pair(42, std::make_pair(43, 44)))); in TEST()
91 EXPECT_EQ(hash_value(std::make_pair(42, std::make_pair(43, 44))), in TEST()
92 hash_value(std::make_pair(std::make_pair(42, 43), 44))); in TEST()
97 hash_value(std::make_pair('0', std::make_pair(1ull, '2')))); in TEST()
102 hash_value(std::make_pair(obj1, std::make_pair(obj2, obj3)))); in TEST()
107 EXPECT_EQ(hash_combine_range(s.c_str(), s.c_str() + s.size()), hash_value(s)); in TEST()
109 hash_value(s.substr(0, s.size() - 1))); in TEST()
111 hash_value(s.substr(1, s.size() - 2))); in TEST()
115 hash_value(ws)); in TEST()
117 hash_value(ws.substr(0, ws.size() - 1))); in TEST()
119 hash_value(ws.substr(1, ws.size() - 2))); in TEST()
128 hash_code hash_value(HashableDummy dummy) { return dummy.value; } in hash_value() function