Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/extensions/hash/
Dspecializations.pass.cpp17 assert(__gnu_cxx::hash<const char *>()("test") == in main()
18 std::hash<std::string>()("test")); in main()
19 assert(__gnu_cxx::hash<char *>()(str) == std::hash<std::string>()("test")); in main()
20 assert(__gnu_cxx::hash<char>()(42) == 42); in main()
21 assert(__gnu_cxx::hash<signed char>()(42) == 42); in main()
22 assert(__gnu_cxx::hash<unsigned char>()(42) == 42); in main()
23 assert(__gnu_cxx::hash<short>()(42) == 42); in main()
24 assert(__gnu_cxx::hash<unsigned short>()(42) == 42); in main()
25 assert(__gnu_cxx::hash<int>()(42) == 42); in main()
26 assert(__gnu_cxx::hash<unsigned int>()(42) == 42); in main()
[all …]
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_hash_fun.h40 template <class _Key> struct hash { }; struct
56 struct hash<char*> {
64 struct hash<const char*> {
71 _STLP_TEMPLATE_NULL struct hash<char> {
74 _STLP_TEMPLATE_NULL struct hash<unsigned char> {
78 _STLP_TEMPLATE_NULL struct hash<signed char> {
82 _STLP_TEMPLATE_NULL struct hash<short> {
85 _STLP_TEMPLATE_NULL struct hash<unsigned short> {
88 _STLP_TEMPLATE_NULL struct hash<int> {
93 _STLP_TEMPLATE_NULL struct hash<unsigned int> {
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.hash/
Dhash.pass.cpp28 assert(std::hash<optional<T>>{}(opt) == 0); in main()
30 assert(std::hash<optional<T>>{}(opt) == std::hash<T>{}(*opt)); in main()
35 assert(std::hash<optional<T>>{}(opt) == 0); in main()
37 assert(std::hash<optional<T>>{}(opt) == std::hash<T>{}(*opt)); in main()
42 assert(std::hash<optional<T>>{}(opt) == 0); in main()
44 assert(std::hash<optional<T>>{}(opt) == std::hash<T>{}(*opt)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ext/
D__hash22 template <typename _Tp> struct _LIBCPP_TYPE_VIS_ONLY hash { };
24 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<const char*>
34 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<char *>
44 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<char>
54 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<signed char>
64 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<unsigned char>
74 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<short>
84 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<unsigned short>
94 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<int>
104 template <> struct _LIBCPP_TYPE_VIS_ONLY hash<unsigned int>
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multiset/unord.multiset.cnstr/
Dassign_move.pass.cpp33 test_hash<std::hash<int> >, in main()
49 test_hash<std::hash<int> >(8), in main()
55 test_hash<std::hash<int> >(2), in main()
74 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
86 test_hash<std::hash<int> >, in main()
102 test_hash<std::hash<int> >(8), in main()
108 test_hash<std::hash<int> >(2), in main()
119 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
131 test_hash<std::hash<int> >, in main()
147 test_hash<std::hash<int> >(8), in main()
[all …]
Dsize_hash.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
36 test_hash<std::hash<NotConstructible> >(8) in main()
39 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
51 test_hash<std::hash<NotConstructible> >, in main()
56 test_hash<std::hash<NotConstructible> >(8) in main()
59 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dsize_hash_equal.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
36 test_hash<std::hash<NotConstructible> >(8), in main()
40 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
52 test_hash<std::hash<NotConstructible> >, in main()
57 test_hash<std::hash<NotConstructible> >(8), in main()
61 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dsize_hash_equal_allocator.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
36 test_hash<std::hash<NotConstructible> >(8), in main()
41 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
53 test_hash<std::hash<NotConstructible> >, in main()
58 test_hash<std::hash<NotConstructible> >(8), in main()
63 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dmove.pass.cpp32 test_hash<std::hash<int> >, in main()
47 test_hash<std::hash<int> >(8), in main()
54 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
67 test_hash<std::hash<int> >, in main()
83 test_hash<std::hash<int> >(8), in main()
94 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
108 test_hash<std::hash<int> >, in main()
123 test_hash<std::hash<int> >(8), in main()
130 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
143 test_hash<std::hash<int> >, in main()
[all …]
Dassign_copy.pass.cpp32 test_hash<std::hash<int> >, in main()
48 test_hash<std::hash<int> >(8), in main()
54 test_hash<std::hash<int> >(2), in main()
73 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
104 test_hash<std::hash<int> >, in main()
120 test_hash<std::hash<int> >(8), in main()
126 test_hash<std::hash<int> >(2), in main()
145 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
158 test_hash<std::hash<int> >, in main()
174 test_hash<std::hash<int> >(8), in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.set/unord.set.cnstr/
Dassign_move.pass.cpp33 test_hash<std::hash<int> >, in main()
49 test_hash<std::hash<int> >(8), in main()
55 test_hash<std::hash<int> >(2), in main()
66 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
78 test_hash<std::hash<int> >, in main()
94 test_hash<std::hash<int> >(8), in main()
100 test_hash<std::hash<int> >(2), in main()
111 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
123 test_hash<std::hash<int> >, in main()
139 test_hash<std::hash<int> >(8), in main()
[all …]
Dsize_hash.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
36 test_hash<std::hash<NotConstructible> >(8) in main()
39 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
51 test_hash<std::hash<NotConstructible> >, in main()
56 test_hash<std::hash<NotConstructible> >(8) in main()
59 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dsize_hash_equal.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
36 test_hash<std::hash<NotConstructible> >(8), in main()
40 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
52 test_hash<std::hash<NotConstructible> >, in main()
57 test_hash<std::hash<NotConstructible> >(8), in main()
61 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dsize_hash_equal_allocator.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
36 test_hash<std::hash<NotConstructible> >(8), in main()
41 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
53 test_hash<std::hash<NotConstructible> >, in main()
58 test_hash<std::hash<NotConstructible> >(8), in main()
63 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dassign_copy.pass.cpp32 test_hash<std::hash<int> >, in main()
48 test_hash<std::hash<int> >(8), in main()
54 test_hash<std::hash<int> >(2), in main()
65 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
95 test_hash<std::hash<int> >, in main()
111 test_hash<std::hash<int> >(8), in main()
117 test_hash<std::hash<int> >(2), in main()
128 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
141 test_hash<std::hash<int> >, in main()
157 test_hash<std::hash<int> >(8), in main()
[all …]
Dcopy.pass.cpp31 test_hash<std::hash<int> >, in main()
47 test_hash<std::hash<int> >(8), in main()
58 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
70 test_hash<std::hash<int> >, in main()
86 test_hash<std::hash<int> >(8), in main()
97 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
110 test_hash<std::hash<int> >, in main()
126 test_hash<std::hash<int> >(8), in main()
137 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
Dmove.pass.cpp32 test_hash<std::hash<int> >, in main()
47 test_hash<std::hash<int> >(8), in main()
54 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
67 test_hash<std::hash<int> >, in main()
83 test_hash<std::hash<int> >(8), in main()
94 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
108 test_hash<std::hash<int> >, in main()
123 test_hash<std::hash<int> >(8), in main()
130 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
143 test_hash<std::hash<int> >, in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multimap/unord.multimap.cnstr/
Dsize_hash.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
37 test_hash<std::hash<NotConstructible> >(8) in main()
40 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
53 test_hash<std::hash<NotConstructible> >, in main()
59 test_hash<std::hash<NotConstructible> >(8) in main()
62 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dsize_hash_equal.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
37 test_hash<std::hash<NotConstructible> >(8), in main()
41 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
54 test_hash<std::hash<NotConstructible> >, in main()
60 test_hash<std::hash<NotConstructible> >(8), in main()
64 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dsize_hash_equal_allocator.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
37 test_hash<std::hash<NotConstructible> >(8), in main()
42 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
55 test_hash<std::hash<NotConstructible> >, in main()
61 test_hash<std::hash<NotConstructible> >(8), in main()
66 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.map/unord.map.cnstr/
Dsize_hash.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
37 test_hash<std::hash<NotConstructible> >(8) in main()
40 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
53 test_hash<std::hash<NotConstructible> >, in main()
59 test_hash<std::hash<NotConstructible> >(8) in main()
62 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dassign_move.pass.cpp34 test_hash<std::hash<int> >, in main()
50 test_hash<std::hash<int> >(8), in main()
56 test_hash<std::hash<int> >(2), in main()
67 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
79 test_hash<std::hash<int> >, in main()
95 test_hash<std::hash<int> >(8), in main()
101 test_hash<std::hash<int> >(2), in main()
112 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
125 test_hash<std::hash<int> >, in main()
141 test_hash<std::hash<int> >(8), in main()
[all …]
Dsize_hash_equal.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
37 test_hash<std::hash<NotConstructible> >(8), in main()
41 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
54 test_hash<std::hash<NotConstructible> >, in main()
60 test_hash<std::hash<NotConstructible> >(8), in main()
64 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dsize_hash_equal_allocator.pass.cpp31 test_hash<std::hash<NotConstructible> >, in main()
37 test_hash<std::hash<NotConstructible> >(8), in main()
42 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
55 test_hash<std::hash<NotConstructible> >, in main()
61 test_hash<std::hash<NotConstructible> >(8), in main()
66 assert(c.hash_function() == test_hash<std::hash<NotConstructible> >(8)); in main()
Dassign_copy.pass.cpp33 test_hash<std::hash<int> >, in main()
49 test_hash<std::hash<int> >(8), in main()
55 test_hash<std::hash<int> >(2), in main()
66 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
96 test_hash<std::hash<int> >, in main()
112 test_hash<std::hash<int> >(8), in main()
118 test_hash<std::hash<int> >(2), in main()
129 assert(c.hash_function() == test_hash<std::hash<int> >(8)); in main()
142 test_hash<std::hash<int> >, in main()
158 test_hash<std::hash<int> >(8), in main()
[all …]

12345678910>>...15