Lines Matching refs:std
32 struct AllowMultimapping<oneapi::tbb::concurrent_unordered_multimap<Args...>> : std::true_type {};
35 using Allocator = LocalCountingAllocator<std::allocator<std::pair<const Key, Mapped>>>;
37 using map_type = oneapi::tbb::concurrent_unordered_map<int, int, std::hash<int>, std::equal_to<int>…
38 using multimap_type = oneapi::tbb::concurrent_unordered_multimap<int, int, std::hash<int>, std::equ…
57 static_assert(std::is_same<typename default_container_type::hasher, std::hash<int>>::value, in test_member_types()
59 … static_assert(std::is_same<typename default_container_type::key_equal, std::equal_to<int>>::value, in test_member_types()
61 static_assert(std::is_same<typename default_container_type::allocator_type, in test_member_types()
62 oneapi::tbb::tbb_allocator<std::pair<const int, int>>>::value, in test_member_types()
65 auto test_hasher = [](const int&)->std::size_t { return 0; }; in test_member_types()
67 using test_allocator_type = std::allocator<std::pair<const int, int>>; in test_member_types()
72 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
74 static_assert(std::is_same<typename container_type::mapped_type, int>::value, in test_member_types()
76 … static_assert(std::is_same<typename container_type::value_type, std::pair<const int, int>>::value, in test_member_types()
79 static_assert(std::is_unsigned<typename container_type::size_type>::value, in test_member_types()
81 static_assert(std::is_signed<typename container_type::difference_type>::value, in test_member_types()
84 static_assert(std::is_same<typename container_type::hasher, decltype(test_hasher)>::value, in test_member_types()
86 static_assert(std::is_same<typename container_type::key_equal, decltype(test_equality)>::value, in test_member_types()
90 std::equal_to<int>, test_allocator_type>; in test_member_types()
92 …static_assert(std::is_same<typename transparent_container_type::key_equal, transparent_key_equalit… in test_member_types()
94 static_assert(std::is_same<typename container_type::allocator_type, test_allocator_type>::value, in test_member_types()
98 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
100 static_assert(std::is_same<typename container_type::const_reference, const value_type&>::value, in test_member_types()
103 …static_assert(std::is_same<typename container_type::pointer, typename std::allocator_traits<alloca… in test_member_types()
105 …static_assert(std::is_same<typename container_type::const_pointer, typename std::allocator_traits<… in test_member_types()
110 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
114 static_assert(std::is_const<typename container_type::const_iterator::value_type>::value, in test_member_types()
118 static_assert(!std::is_const<typename container_type::local_iterator::value_type>::value, in test_member_types()
122 static_assert(std::is_const<typename container_type::const_local_iterator::value_type>::value, in test_member_types()
129 using ComplexType = std::pair<int, std::string>; in test_deduction_guides()
130 using ComplexTypeConst = std::pair<const int, std::string>; in test_deduction_guides()
131 std::vector<ComplexType> v; in test_deduction_guides()
133 using custom_allocator_type = std::allocator<ComplexTypeConst>; in test_deduction_guides()
137 static_assert(std::is_same<decltype(m0), TMap<int, std::string>>::value); in test_deduction_guides()
141 static_assert(std::is_same<decltype(m1), TMap<int, std::string>>::value); in test_deduction_guides()
145 static_assert(std::is_same<decltype(m2), TMap<int, std::string, degenerate_hash<int>>>::value); in test_deduction_guides()
148 TMap m3(v.begin(), v.end(), 4, degenerate_hash<int>(), std::less<int>()); in test_deduction_guides()
149 …static_assert(std::is_same<decltype(m3), TMap<int, std::string, degenerate_hash<int>, std::less<in… in test_deduction_guides()
152 … TMap m4(v.begin(), v.end(), 4, degenerate_hash<int>(), std::less<int>(), custom_allocator_type{}); in test_deduction_guides()
153 static_assert(std::is_same<decltype(m4), TMap<int, std::string, degenerate_hash<int>, in test_deduction_guides()
154 std::less<int>, custom_allocator_type>>::value); in test_deduction_guides()
158 static_assert(std::is_same<decltype(m5), TMap<int, std::string, std::hash<int>, in test_deduction_guides()
159 std::equal_to<int>, custom_allocator_type>>::value); in test_deduction_guides()
163 static_assert(std::is_same<decltype(m6), TMap<int, std::string, degenerate_hash<int>, in test_deduction_guides()
164 std::equal_to<int>, custom_allocator_type>>::value); in test_deduction_guides()
168 static_assert(std::is_same<decltype(m7), TMap<int, std::string>>::value); in test_deduction_guides()
172 static_assert(std::is_same<decltype(m8), TMap<int, std::string>>::value); in test_deduction_guides()
176 static_assert(std::is_same<decltype(m9), TMap<int, std::string, degenerate_hash<int>>>::value); in test_deduction_guides()
179 TMap m10(l, 4, degenerate_hash<int>(), std::less<int>()); in test_deduction_guides()
180 …static_assert(std::is_same<decltype(m10), TMap<int, std::string, degenerate_hash<int>, std::less<i… in test_deduction_guides()
183 TMap m11(l, 4, degenerate_hash<int>(), std::less<int>(), custom_allocator_type{}); in test_deduction_guides()
184 static_assert(std::is_same<decltype(m11), TMap<int, std::string, degenerate_hash<int>, in test_deduction_guides()
185 std::less<int>, custom_allocator_type>>::value); in test_deduction_guides()
189 static_assert(std::is_same<decltype(m12), TMap<int, std::string, std::hash<int>, in test_deduction_guides()
190 std::equal_to<int>, custom_allocator_type>>::value); in test_deduction_guides()
194 static_assert(std::is_same<decltype(m13), TMap<int, std::string, degenerate_hash<int>, in test_deduction_guides()
195 std::equal_to<int>, custom_allocator_type>>::value); in test_deduction_guides()
199 static_assert(std::is_same<decltype(m14), decltype(m1)>::value); in test_deduction_guides()
204 static_assert(std::is_same<decltype(m15), decltype(m5)>::value); in test_deduction_guides()
207 TMap m16(std::move(m1)); in test_deduction_guides()
208 static_assert(std::is_same<decltype(m16), decltype(m1)>::value); in test_deduction_guides()
212 TMap m17(std::move(m5), custom_allocator_type{}); in test_deduction_guides()
213 static_assert(std::is_same<decltype(m17), decltype(m5)>::value); in test_deduction_guides()
220 …erogeneous_functions_key_string<oneapi::tbb::concurrent_unordered_map, std::string, std::string>(); in test_heterogeneous_functions()
221 …neous_functions_key_string<oneapi::tbb::concurrent_unordered_multimap, std::string, std::string>(); in test_heterogeneous_functions()
226 …using container_type = oneapi::tbb::concurrent_unordered_map<T, T, std::hash<T>, std::equal_to<T>,…
229 using container_value_type = std::pair<const T, T>;
236 …using container_type = oneapi::tbb::concurrent_unordered_multimap<T, T, std::hash<T>, std::equal_t…
239 using container_value_type = std::pair<const T, T>;
290 …erogeneous_functions_key_string<oneapi::tbb::concurrent_unordered_map, std::string, std::string>();
359 …neous_functions_key_string<oneapi::tbb::concurrent_unordered_multimap, std::string, std::string>();