/third_party/boost/libs/smart_ptr/test/ |
D | wp_hash_test.cpp | 13 boost::hash< boost::weak_ptr<int> > hasher; in main() local 18 BOOST_TEST_EQ( hasher( q1 ), hasher( q2 ) ); in main() 19 BOOST_TEST_NE( hasher( q1 ), hasher( q3 ) ); in main() 20 BOOST_TEST_EQ( hasher( q3 ), hasher( q4 ) ); in main() 21 BOOST_TEST_NE( hasher( q3 ), hasher( q5 ) ); in main() 27 BOOST_TEST_EQ( hasher( q1 ), hasher( q2 ) ); in main() 28 BOOST_TEST_NE( hasher( q1 ), hasher( q3 ) ); in main() 29 BOOST_TEST_EQ( hasher( q3 ), hasher( q4 ) ); in main() 30 BOOST_TEST_NE( hasher( q3 ), hasher( q5 ) ); in main() 34 boost::hash< boost::weak_ptr<int[]> > hasher; in main() local [all …]
|
D | lsp_hash_test.cpp | 12 boost::hash< boost::local_shared_ptr<int> > hasher; in main() local 17 BOOST_TEST_EQ( hasher( p1 ), hasher( p2 ) ); in main() 20 BOOST_TEST_NE( hasher( p1 ), hasher( p3 ) ); in main() 23 BOOST_TEST_EQ( hasher( p3 ), hasher( p4 ) ); in main() 26 BOOST_TEST_NE( hasher( p3 ), hasher( p5 ) ); in main() 30 boost::hash< boost::local_shared_ptr<int[]> > hasher; in main() local 35 BOOST_TEST_EQ( hasher( p1 ), hasher( p2 ) ); in main() 38 BOOST_TEST_NE( hasher( p1 ), hasher( p3 ) ); in main() 41 BOOST_TEST_EQ( hasher( p3 ), hasher( p4 ) ); in main() 44 BOOST_TEST_NE( hasher( p3 ), hasher( p5 ) ); in main() [all …]
|
D | sp_hash_test2.cpp | 17 boost::hash< boost::shared_ptr<int[]> > hasher; in main() local 22 BOOST_TEST_EQ( hasher( p1 ), hasher( p2 ) ); in main() 25 BOOST_TEST_NE( hasher( p1 ), hasher( p3 ) ); in main() 28 BOOST_TEST_EQ( hasher( p3 ), hasher( p4 ) ); in main() 31 BOOST_TEST_NE( hasher( p3 ), hasher( p5 ) ); in main()
|
D | sp_hash_test.cpp | 17 boost::hash< boost::shared_ptr<int> > hasher; in main() local 22 BOOST_TEST_EQ( hasher( p1 ), hasher( p2 ) ); in main() 25 BOOST_TEST_NE( hasher( p1 ), hasher( p3 ) ); in main() 28 BOOST_TEST_EQ( hasher( p3 ), hasher( p4 ) ); in main() 31 BOOST_TEST_NE( hasher( p3 ), hasher( p5 ) ); in main()
|
D | sp_hash_test3.cpp | 17 boost::hash< boost::shared_ptr<int[1]> > hasher; in main() local 22 BOOST_TEST_EQ( hasher( p1 ), hasher( p2 ) ); in main() 25 BOOST_TEST_NE( hasher( p1 ), hasher( p3 ) ); in main() 28 BOOST_TEST_EQ( hasher( p3 ), hasher( p4 ) ); in main() 31 BOOST_TEST_NE( hasher( p3 ), hasher( p5 ) ); in main()
|
D | ip_hash_test.cpp | 58 boost::hash< boost::intrusive_ptr<X> > hasher; in main() local 63 BOOST_TEST_EQ( hasher( p1 ), hasher( p2 ) ); in main() 66 BOOST_TEST_NE( hasher( p1 ), hasher( p3 ) ); in main() 69 BOOST_TEST_EQ( hasher( p3 ), hasher( p4 ) ); in main() 72 BOOST_TEST_NE( hasher( p3 ), hasher( p5 ) ); in main()
|
/third_party/boost/libs/container_hash/test/ |
D | hash_optional_test.cpp | 27 boost::hash<std::optional<int> > hasher; in test_optional_int() local 29 BOOST_TEST(hasher(x1a) == hasher(x1a)); in test_optional_int() 30 BOOST_TEST(hasher(x1a) == hasher(x1b)); in test_optional_int() 31 BOOST_TEST(hasher(x1a) != hasher(x2a)); in test_optional_int() 32 BOOST_TEST(hasher(x1a) != hasher(x3)); in test_optional_int() 33 BOOST_TEST(hasher(x2a) == hasher(x2a)); in test_optional_int() 34 BOOST_TEST(hasher(x2b) == hasher(x2b)); in test_optional_int() 35 BOOST_TEST(hasher(x2a) != hasher(x3)); in test_optional_int() 36 BOOST_TEST(hasher(x3) == hasher(x3)); in test_optional_int() 47 boost::hash<std::optional<std::string> > hasher; in test_optional_string() local [all …]
|
D | hash_vector_test.cpp | 39 BOOST_HASH_TEST_NAMESPACE::hash<std::vector<bool> > hasher; in vector_bool_test() local 41 BOOST_TEST_EQ(hasher(x_empty1), hasher(x_empty1)); in vector_bool_test() 42 BOOST_TEST_EQ(hasher(x_empty1), hasher(x_empty2)); in vector_bool_test() 43 BOOST_TEST_NE(hasher(x_empty1), hasher(x1)); in vector_bool_test() 44 BOOST_TEST_NE(hasher(x_empty1), hasher(x2)); in vector_bool_test() 45 BOOST_TEST_NE(hasher(x_empty1), hasher(x3)); in vector_bool_test() 47 BOOST_TEST_EQ(hasher(x1), hasher(x1)); in vector_bool_test() 48 BOOST_TEST_EQ(hasher(x1), hasher(x1a)); in vector_bool_test() 49 BOOST_TEST_NE(hasher(x1), hasher(x2)); in vector_bool_test() 50 BOOST_TEST_NE(hasher(x1), hasher(x3)); in vector_bool_test() [all …]
|
D | hash_variant_test.cpp | 24 boost::hash<std::monostate> hasher; in test_monostate() local 26 BOOST_TEST(hasher(x1) == hasher(x2)); in test_monostate() 37 boost::hash<std::variant<std::monostate, int> > hasher; in test_variant_int() local 39 BOOST_TEST(hasher(x1a) == hasher(x1a)); in test_variant_int() 40 BOOST_TEST(hasher(x1a) == hasher(x1b)); in test_variant_int() 41 BOOST_TEST(hasher(x1a) != hasher(x2a)); in test_variant_int() 42 BOOST_TEST(hasher(x1a) != hasher(x3)); in test_variant_int() 43 BOOST_TEST(hasher(x2a) == hasher(x2a)); in test_variant_int() 44 BOOST_TEST(hasher(x2b) == hasher(x2b)); in test_variant_int() 45 BOOST_TEST(hasher(x2a) != hasher(x3)); in test_variant_int() [all …]
|
D | hash_system_error_test.cpp | 24 boost::hash<std::error_code> hasher; in test_error_code() local 26 BOOST_TEST(hasher(err1a) == hasher(err1a)); in test_error_code() 27 BOOST_TEST(hasher(err1a) == hasher(err1b)); in test_error_code() 28 BOOST_TEST(hasher(err1a) != hasher(err2)); in test_error_code() 37 boost::hash<std::error_condition> hasher; in test_error_condition() local 39 BOOST_TEST(hasher(err1a) == hasher(err1a)); in test_error_condition() 40 BOOST_TEST(hasher(err1a) == hasher(err1b)); in test_error_condition() 41 BOOST_TEST(hasher(err1a) != hasher(err2)); in test_error_condition()
|
D | hash_type_index_test.cpp | 21 BOOST_HASH_TEST_NAMESPACE::hash<std::type_index> hasher; in test_type_index() local 31 BOOST_TEST(hasher(int_index) == int_index.hash_code()); in test_type_index() 32 BOOST_TEST(hasher(int_index) == int2_index.hash_code()); in test_type_index() 33 BOOST_TEST(hasher(char_index) == char_index.hash_code()); in test_type_index() 38 BOOST_TEST(hasher(int_index) == hasher(int2_index)); in test_type_index() 39 BOOST_TEST(hasher(int_index) != hasher(char_index)); in test_type_index()
|
D | hash_string_test.cpp | 48 BOOST_HASH_TEST_NAMESPACE::hash<std::string> hasher; in string0_tests() local 50 BOOST_TEST(hasher(x1) != hasher(x2)); in string0_tests() 51 BOOST_TEST(hasher(x1) != hasher(x3)); in string0_tests() 52 BOOST_TEST(hasher(x1) != hasher(x4)); in string0_tests() 53 BOOST_TEST(hasher(x2) != hasher(x3)); in string0_tests() 54 BOOST_TEST(hasher(x2) != hasher(x4)); in string0_tests() 55 BOOST_TEST(hasher(x3) != hasher(x4)); in string0_tests()
|
D | hash_sequence_test.hpp | 41 BOOST_HASH_TEST_NAMESPACE::hash<T> hasher; 44 BOOST_TEST(hasher(containers[i2]) == hasher(containers[i2])); 46 BOOST_TEST(hasher(containers[i2]) == 49 BOOST_TEST(hasher(containers[i2]) 56 (hasher(containers[i2]) == hasher(containers[j2]))
|
D | hash_map_test.hpp | 39 BOOST_HASH_TEST_NAMESPACE::hash<T> hasher; 42 BOOST_TEST(hasher(containers[i2]) == hasher(containers[i2])); 44 BOOST_TEST(hasher(containers[i2]) == 47 BOOST_TEST(hasher(containers[i2]) 54 (hasher(containers[i2]) == hasher(containers[j2]))
|
D | hash_set_test.hpp | 44 BOOST_HASH_TEST_NAMESPACE::hash<T> hasher; 47 BOOST_TEST(hasher(containers[i2]) == hasher(containers[i2])); 49 BOOST_TEST(hasher(containers[i2]) == 52 BOOST_TEST(hasher(containers[i2]) 59 (hasher(containers[i2]) == hasher(containers[j2]))
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | hash.inl | 28 hash<T> hasher; local 29 return hasher(v.x); 36 hash<T> hasher; local 37 glm::detail::hash_combine(seed, hasher(v.x)); 38 glm::detail::hash_combine(seed, hasher(v.y)); 46 hash<T> hasher; local 47 glm::detail::hash_combine(seed, hasher(v.x)); 48 glm::detail::hash_combine(seed, hasher(v.y)); 49 glm::detail::hash_combine(seed, hasher(v.z)); 57 hash<T> hasher; local [all …]
|
/third_party/boost/libs/variant/test/ |
D | hash_variant_test.cpp | 31 boost::hash<variant_type> hasher; in run() local 40 BOOST_TEST(hasher(bool_variant1) != hasher(bool_variant2)); in run() 41 BOOST_TEST(hasher(bool_variant1) == hasher(bool_variant1)); in run() 42 BOOST_TEST(hasher(int_variant) != hasher(uint_variant)); in run() 43 BOOST_TEST(hasher(char_variant1) != hasher(uint_variant)); in run() 44 BOOST_TEST(hasher(char_variant1) != hasher(char_variant2)); in run() 45 BOOST_TEST(hasher(char_variant1) == hasher(char_variant1)); in run() 46 BOOST_TEST(hasher(char_variant2) == hasher(char_variant2)); in run()
|
/third_party/abseil-cpp/absl/container/internal/ |
D | unordered_set_constructor_test.h | 51 using H = typename TypeParam::hasher; in TYPED_TEST_P() 52 H hasher; in TYPED_TEST_P() local 53 TypeParam m(123, hasher); in TYPED_TEST_P() 54 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P() 61 using H = typename TypeParam::hasher; in TYPED_TEST_P() 63 H hasher; in TYPED_TEST_P() local 65 TypeParam m(123, hasher, equal); in TYPED_TEST_P() 66 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P() 74 using H = typename TypeParam::hasher; in TYPED_TEST_P() 77 H hasher; in TYPED_TEST_P() local [all …]
|
D | unordered_map_constructor_test.h | 49 using H = typename TypeParam::hasher; in TYPED_TEST_P() 50 H hasher; in TYPED_TEST_P() local 51 TypeParam m(123, hasher); in TYPED_TEST_P() 52 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P() 59 using H = typename TypeParam::hasher; in TYPED_TEST_P() 61 H hasher; in TYPED_TEST_P() local 63 TypeParam m(123, hasher, equal); in TYPED_TEST_P() 64 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P() 72 using H = typename TypeParam::hasher; in TYPED_TEST_P() 75 H hasher; in TYPED_TEST_P() local [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | unordered_set_constructor_test.h | 51 using H = typename TypeParam::hasher; in TYPED_TEST_P() 52 H hasher; in TYPED_TEST_P() local 53 TypeParam m(123, hasher); in TYPED_TEST_P() 54 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P() 61 using H = typename TypeParam::hasher; in TYPED_TEST_P() 63 H hasher; in TYPED_TEST_P() local 65 TypeParam m(123, hasher, equal); in TYPED_TEST_P() 66 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P() 74 using H = typename TypeParam::hasher; in TYPED_TEST_P() 77 H hasher; in TYPED_TEST_P() local [all …]
|
D | unordered_map_constructor_test.h | 50 using H = typename TypeParam::hasher; in TYPED_TEST_P() 51 H hasher; in TYPED_TEST_P() local 52 TypeParam m(123, hasher); in TYPED_TEST_P() 53 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P() 60 using H = typename TypeParam::hasher; in TYPED_TEST_P() 62 H hasher; in TYPED_TEST_P() local 64 TypeParam m(123, hasher, equal); in TYPED_TEST_P() 65 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P() 73 using H = typename TypeParam::hasher; in TYPED_TEST_P() 76 H hasher; in TYPED_TEST_P() local [all …]
|
/third_party/boost/libs/container_hash/examples/ |
D | portable.cpp | 29 boost::hash<T> hasher; in hash() local 30 return hasher(value); in hash() 52 boost::hash<foo::custom_type<int> > hasher; in main() local 54 assert(hasher(x) == hasher(x)); in main() 55 assert(hasher(x) != hasher(y)); in main() 56 assert(hasher(x) == hasher(z)); in main()
|
/third_party/node/deps/brotli/c/enc/ |
D | hash.h | 393 static BROTLI_INLINE void HasherInit(Hasher* hasher) { in HasherInit() argument 394 hasher->common.extra = NULL; in HasherInit() 397 static BROTLI_INLINE void DestroyHasher(MemoryManager* m, Hasher* hasher) { in DestroyHasher() argument 398 if (hasher->common.extra == NULL) return; in DestroyHasher() 399 BROTLI_FREE(m, hasher->common.extra); in DestroyHasher() 402 static BROTLI_INLINE void HasherReset(Hasher* hasher) { in HasherReset() argument 403 hasher->common.is_prepared_ = BROTLI_FALSE; in HasherReset() 408 switch (params->hasher.type) { in HasherSize() 420 static BROTLI_INLINE void HasherSetup(MemoryManager* m, Hasher* hasher, in HasherSetup() argument 424 if (hasher->common.extra == NULL) { in HasherSetup() [all …]
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
D | hash.h | 393 static BROTLI_INLINE void HasherInit(Hasher* hasher) { in HasherInit() argument 394 hasher->common.extra = NULL; in HasherInit() 397 static BROTLI_INLINE void DestroyHasher(MemoryManager* m, Hasher* hasher) { in DestroyHasher() argument 398 if (hasher->common.extra == NULL) return; in DestroyHasher() 399 BROTLI_FREE(m, hasher->common.extra); in DestroyHasher() 402 static BROTLI_INLINE void HasherReset(Hasher* hasher) { in HasherReset() argument 403 hasher->common.is_prepared_ = BROTLI_FALSE; in HasherReset() 408 switch (params->hasher.type) { in HasherSize() 420 static BROTLI_INLINE void HasherSetup(MemoryManager* m, Hasher* hasher, in HasherSetup() argument 424 if (hasher->common.extra == NULL) { in HasherSetup() [all …]
|
/third_party/boost/libs/unordered/test/unordered/ |
D | swap_tests.cpp | 81 typedef typename X::hasher hasher; in swap_tests2() typedef 88 X x(0, hasher(1), key_equal(1)); in swap_tests2() 89 X y(0, hasher(2), key_equal(2)); in swap_tests2() 97 X x(v.begin(), v.end(), 0, hasher(1), key_equal(1)); in swap_tests2() 98 X y(0, hasher(2), key_equal(2)); in swap_tests2() 106 X x(vx.begin(), vx.end(), 0, hasher(1), key_equal(1)); in swap_tests2() 107 X y(vy.begin(), vy.end(), 0, hasher(2), key_equal(2)); in swap_tests2() 117 X x(vx.begin(), vx.end(), 0, hasher(), key_equal(), allocator_type(1)); in swap_tests2() 118 X y(vy.begin(), vy.end(), 0, hasher(), key_equal(), allocator_type(2)); in swap_tests2() 131 X x(vx.begin(), vx.end(), 0, hasher(1), key_equal(1), allocator_type(1)); in swap_tests2() [all …]
|