Home
last modified time | relevance | path

Searched refs:unordered_map (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/
H A Ddeduct.pass.cpp77 std::unordered_map m(std::begin(arr), std::end(arr)); in main()
84 std::unordered_map m(std::begin(arr), std::end(arr), 42); in main()
112 std::unordered_map<int, long> source; in main()
113 std::unordered_map m(source); in main()
119 std::unordered_map<int, long> source; in main()
128 std::unordered_map m(source, a); in main()
206 std::unordered_map m{std::pair{1, 1}, {2, 2}, {3, 3}}; in main()
209 std::unordered_map m2{m.begin(), m.end()}; in main()
215 std::unordered_map m1{{std::pair{1, 2}, {3, 4}}, 0}; in main()
219 std::unordered_map m2{{value_type{1, 2}, {3, 4}}, 0}; in main()
[all …]
H A Ddeduct_const.pass.cpp76 std::unordered_map m(std::begin(arr), std::end(arr)); in main()
77 ASSERT_SAME_TYPE(decltype(m), std::unordered_map<int, long>); in main()
83 std::unordered_map m(std::begin(arr), std::end(arr), 42); in main()
84 ASSERT_SAME_TYPE(decltype(m), std::unordered_map<int, long>); in main()
90 std::unordered_map m(std::begin(arr), std::end(arr), 42, std::hash<short>()); in main()
111 std::unordered_map m { PC{1,1L}, PC{2,2L}, PC{1,1L}, PC{INT_MAX,1L}, PC{3,1L} }; in main()
112 ASSERT_SAME_TYPE(decltype(m), std::unordered_map<int, long>); in main()
117 std::unordered_map m({ PC{1,1L}, PC{2,2L}, PC{1,1L}, PC{INT_MAX,1L}, PC{3,1L} }, 42); in main()
118 ASSERT_SAME_TYPE(decltype(m), std::unordered_map<int, long>); in main()
124 ASSERT_SAME_TYPE(decltype(m), std::unordered_map<int, long, std::hash<short>>); in main()
[all …]
H A Ddeduct.fail.cpp67 …std::unordered_map m; // expected-error{{no viable constructor or deduction guide for deduction of… in main()
71 …std::unordered_map m(42); // expected-error{{no viable constructor or deduction guide for deductio… in main()
75 std::unordered_map m(42, std::hash<int>()); in main()
80 std::unordered_map m(42, std::hash<int>(), std::equal_to<int>()); in main()
85 std::unordered_map m(42, std::hash<int>(), std::equal_to<int>(), std::allocator<P>()); in main()
90 std::unordered_map m(std::allocator<P>{}); in main()
95 std::unordered_map m(42, std::allocator<P>()); in main()
100 std::unordered_map m(42, std::hash<int>(), std::allocator<P>()); in main()
H A Dassign_copy.addressof.compile.pass.cpp26 std::unordered_map<int, operator_hijacker> mo; in test()
27 std::unordered_map<int, operator_hijacker> m; in test()
31 std::unordered_map<operator_hijacker, int> mo; in test()
32 std::unordered_map<operator_hijacker, int> m; in test()
H A Dassign_move.addressof.compile.pass.cpp33 std::unordered_map<int, operator_hijacker> mo; in test()
34 std::unordered_map<int, operator_hijacker> m; in test()
38 std::unordered_map<operator_hijacker, int> mo; in test()
39 std::unordered_map<operator_hijacker, int> m; in test()
H A Dmove_assign_noexcept.pass.cpp50 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main()
54 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
60 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
66 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
70 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
H A Dmove_noexcept.pass.cpp48 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main()
52 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
57 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
63 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
67 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
H A Ddefault_noexcept.pass.cpp52 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main()
56 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
62 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
67 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
71 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
H A Ddtor_noexcept.pass.cpp44 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main()
48 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
53 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
59 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
63 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
H A Dswap_noexcept.pass.cpp126 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main()
131 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
136 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
142 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
146 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
153 …typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_all… in main()
157 …typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_all… in main()
161 …typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>, some_comp2<MoveOnly>, some_all… in main()
165 …typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>, some_comp2<MoveOnly>, some_all… in main()
169 …typedef std::unordered_map<MoveOnly, MoveOnly, some_hash2<MoveOnly>, some_comp <MoveOnly>, some_al… in main()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/containers/unord/unord.map/unord.map.modifiers/
H A Ddebug.erase.iter_iter.pass.cpp25 std::unordered_map<int, int> l1(a1, a1+3); in main()
26 std::unordered_map<int, int> l2(a1, a1+3); in main()
36 std::unordered_map<int, int> l1(a1, a1+3); in main()
37 std::unordered_map<int, int> l2(a1, a1+3); in main()
47 std::unordered_map<int, int> l1(a1, a1+3); in main()
48 std::unordered_map<int, int> l2(a1, a1+3); in main()
58 std::unordered_map<int, int> l1(a1, a1+3); in main()
H A Ddebug.erase.iter.pass.cpp25 std::unordered_map<int, int> l1(a1, a1+3); in main()
26 std::unordered_map<int, int>::const_iterator i = l1.end(); in main()
35 std::unordered_map<int, int> l1(a1, a1+3); in main()
36 std::unordered_map<int, int> l2(a1, a1+3); in main()
37 std::unordered_map<int, int>::const_iterator i = l2.begin(); in main()
/llvm-project-15.0.7/libcxx/include/
H A Dunordered_map24 class unordered_map
63 unordered_map(const unordered_map&);
64 unordered_map(const unordered_map&, const Allocator&);
65 unordered_map(unordered_map&&)
70 unordered_map(unordered_map&&, const Allocator&);
91 unordered_map& operator=(const unordered_map&);
92 unordered_map& operator=(unordered_map&&)
1112 unordered_map(const unordered_map& __u);
1116 unordered_map(unordered_map&& __u)
1156 unordered_map& operator=(const unordered_map& __u)
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-auto-iterator.cpp177 std::unordered_map<int, int> C; in f_unordered_map()
178 std::unordered_map<int, int>::iterator UMapI1 = C.begin(); in f_unordered_map()
182 const std::unordered_map<int, int> D; in f_unordered_map()
227 std::unordered_map<int, int> Map;
239 std::unordered_map<int, int>::iterator I{Map.begin()}; in initializer_list()
240 std::unordered_map<int, int>::iterator I2 = {Map.begin()}; in initializer_list()
248 std::unordered_map<int, int>::iterator copy(Map.begin()); in construction()
252 std::unordered_map<int, int>::iterator def; in construction()
253 std::unordered_map<int, int>::const_iterator constI; in construction()
260 std::unordered_map<int, int>::const_iterator constI4 in construction()
[all …]
/llvm-project-15.0.7/bolt/lib/Passes/
H A DCacheMetrics.cpp41 std::unordered_map<BinaryBasicBlock *, uint64_t> &BBAddr, in extractBasicBlockInfo()
42 std::unordered_map<BinaryBasicBlock *, uint64_t> &BBSize) { in extractBasicBlockInfo()
89 const std::unordered_map<BinaryBasicBlock *, uint64_t> &BBAddr, in calcExtTSPScore()
114 std::unordered_map<const BinaryFunction *, Predecessors>
116 std::unordered_map<const BinaryFunction *, Predecessors> Calls; in extractFunctionCalls()
161 const std::unordered_map<BinaryBasicBlock *, uint64_t> &BBAddr, in expectedCacheHitRatio()
166 std::unordered_map<const BinaryFunction *, Predecessors> Calls = in expectedCacheHitRatio()
170 std::unordered_map<BinaryFunction *, double> FunctionSamples; in expectedCacheHitRatio()
181 std::unordered_map<uint64_t, double> PageSamples; in expectedCacheHitRatio()
302 std::unordered_map<BinaryBasicBlock *, uint64_t> BBAddr; in printAll()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/
H A Dcontains.transparent.pass.cpp29 using M = unord_map_type<std::unordered_map, transparent_hash, std::equal_to<>>; in main()
36 using M = unord_map_type<std::unordered_map, transparent_hash_final, transparent_equal_final>; in main()
43 using M = unord_map_type<std::unordered_map, non_transparent_hash, std::equal_to<>>; in main()
50 using M = unord_map_type<std::unordered_map, transparent_hash, std::equal_to<key_type>>; in main()
57 using M = unord_map_type<std::unordered_map, non_transparent_hash, std::equal_to<key_type>>; in main()
H A Dcount.transparent.pass.cpp30 using M = unord_map_type<std::unordered_map, transparent_hash, std::equal_to<>>; in main()
37 using M = unord_map_type<std::unordered_map, transparent_hash_final, transparent_equal_final>; in main()
44 using M = unord_map_type<std::unordered_map, non_transparent_hash, std::equal_to<>>; in main()
51 using M = unord_map_type<std::unordered_map, transparent_hash, std::equal_to<key_type>>; in main()
58 using M = unord_map_type<std::unordered_map, non_transparent_hash, std::equal_to<key_type>>; in main()
H A Dfind.transparent.pass.cpp30 using M = unord_map_type<std::unordered_map, transparent_hash, std::equal_to<>>; in main()
37 using M = unord_map_type<std::unordered_map, transparent_hash_final, transparent_equal_final>; in main()
44 using M = unord_map_type<std::unordered_map, non_transparent_hash, std::equal_to<>>; in main()
51 using M = unord_map_type<std::unordered_map, transparent_hash, std::equal_to<key_type>>; in main()
58 using M = unord_map_type<std::unordered_map, non_transparent_hash, std::equal_to<key_type>>; in main()
H A Dequal_range.transparent.pass.cpp30 using M = unord_map_type<std::unordered_map, transparent_hash, std::equal_to<>>; in main()
37 using M = unord_map_type<std::unordered_map, transparent_hash_final, transparent_equal_final>; in main()
44 using M = unord_map_type<std::unordered_map, non_transparent_hash, std::equal_to<>>; in main()
51 using M = unord_map_type<std::unordered_map, transparent_hash, std::equal_to<key_type>>; in main()
58 using M = unord_map_type<std::unordered_map, non_transparent_hash, std::equal_to<key_type>>; in main()
H A Deq.pass.cpp34 typedef std::unordered_map<int, std::string> C; in main()
52 typedef std::unordered_map<int, std::string> C; in main()
70 typedef std::unordered_map<int, std::string> C; in main()
93 typedef std::unordered_map<int, std::string> C; in main()
115 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
134 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
153 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
177 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
/llvm-project-15.0.7/libcxx/test/std/experimental/memory/memory.resource.aliases/
H A Dheader_unordered_map_synop.pass.cpp54 using StdMap = std::unordered_map<K, V, DH, DP, pmr::polymorphic_allocator<P>>; in main()
55 using PmrMap = pmr::unordered_map<K, V>; in main()
59 using StdMap = std::unordered_map<K, V, MH, DP, pmr::polymorphic_allocator<P>>; in main()
60 using PmrMap = pmr::unordered_map<K, V, MH>; in main()
64 using StdMap = std::unordered_map<K, V, MH, MP, pmr::polymorphic_allocator<P>>; in main()
65 using PmrMap = pmr::unordered_map<K, V, MH, MP>; in main()
69 pmr::unordered_map<int, int> m; in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/
H A Dmerge.pass.cpp55 std::unordered_map<int, int> src{{1, 0}, {3, 0}, {5, 0}}; in main()
56 std::unordered_map<int, int> dst{{2, 0}, {4, 0}, {5, 0}}; in main()
65 typedef std::unordered_map<Counter<int>, int, throw_hasher<Counter<int>>> map_type; in main()
104 …typedef std::unordered_map<Counter<int>, int, std::hash<Counter<int>>, std::equal_to<Counter<int>>… in main()
105 typedef std::unordered_map<Counter<int>, int, hasher, equal> second_map_type; in main()
144 std::unordered_map<int, int> first; in main()
146 std::unordered_map<int, int> second; in main()
H A Dinsert_and_emplace_allocator_requirements.pass.cpp27 testMapInsert<TCT::unordered_map<> >(); in main()
28 testMapInsertHint<TCT::unordered_map<> >(); in main()
29 testMapEmplace<TCT::unordered_map<> >(); in main()
30 testMapEmplaceHint<TCT::unordered_map<> >(); in main()
/llvm-project-15.0.7/libcxx/include/experimental/
H A Dunordered_map14 experimental/unordered_map synopsis
25 using unordered_map =
26 std::unordered_map<Key, T, Hash, Pred,
46 #include <unordered_map>
64 using unordered_map = _VSTD::unordered_map<_Key, _Value, _Hash, _Pred,
/llvm-project-15.0.7/libcxx/test/libcxx/containers/unord/unord.map/
H A Ddebug.swap.pass.cpp28 std::unordered_map<int, int> c1(a1, a1+sizeof(a1)/sizeof(a1[0])); in main()
29 std::unordered_map<int, int> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main()
30 std::unordered_map<int, int>::iterator i1 = c1.begin(); in main()
31 std::unordered_map<int, int>::iterator i2 = c2.begin(); in main()

12345678910>>...15