Lines Matching refs:std
33 struct AllowMultimapping<oneapi::tbb::concurrent_unordered_multiset<Args...>> : std::true_type {};
36 using Allocator = LocalCountingAllocator<std::allocator<Key>>;
38 using set_type = oneapi::tbb::concurrent_unordered_set<int, std::hash<int>, std::equal_to<int>, All…
39 using multiset_type = oneapi::tbb::concurrent_unordered_multiset<int, std::hash<int>, std::equal_to…
44 static_assert(std::is_same<typename default_container_type::hasher, std::hash<int>>::value, in test_member_types()
46 … static_assert(std::is_same<typename default_container_type::key_equal, std::equal_to<int>>::value, in test_member_types()
48 …static_assert(std::is_same<typename default_container_type::allocator_type, oneapi::tbb::tbb_alloc… in test_member_types()
51 auto test_hasher = [](const int&)->std::size_t { return 0; }; in test_member_types()
53 using test_allocator_type = std::allocator<int>; in test_member_types()
57 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
59 static_assert(std::is_same<typename container_type::value_type, int>::value, in test_member_types()
62 static_assert(std::is_unsigned<typename container_type::size_type>::value, in test_member_types()
64 static_assert(std::is_signed<typename container_type::difference_type>::value, in test_member_types()
67 static_assert(std::is_same<typename container_type::hasher, decltype(test_hasher)>::value, in test_member_types()
69 static_assert(std::is_same<typename container_type::key_equal, decltype(test_equality)>::value, in test_member_types()
73 std::equal_to<int>, test_allocator_type>; in test_member_types()
75 …static_assert(std::is_same<typename transparent_container_type::key_equal, transparent_key_equalit… in test_member_types()
77 static_assert(std::is_same<typename container_type::allocator_type, test_allocator_type>::value, in test_member_types()
81 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
83 static_assert(std::is_same<typename container_type::const_reference, const value_type&>::value, in test_member_types()
86 …static_assert(std::is_same<typename container_type::pointer, typename std::allocator_traits<alloca… in test_member_types()
88 …static_assert(std::is_same<typename container_type::const_pointer, typename std::allocator_traits<… in test_member_types()
93 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
97 static_assert(std::is_const<typename container_type::const_iterator::value_type>::value, in test_member_types()
101 static_assert(!std::is_const<typename container_type::local_iterator::value_type>::value, in test_member_types()
105 static_assert(std::is_const<typename container_type::const_local_iterator::value_type>::value, in test_member_types()
111 …using container_type = oneapi::tbb::concurrent_unordered_set<T, std::hash<T>, std::equal_to<T>, Al…
121 …using container_type = oneapi::tbb::concurrent_unordered_multiset<T, std::hash<T>, std::equal_to<T…
132 using ComplexType = const std::string *; in test_deduction_guides()
133 std::vector<ComplexType> v; in test_deduction_guides()
134 std::string s = "s"; in test_deduction_guides()
136 using custom_allocator_type = std::allocator<ComplexType>; in test_deduction_guides()
140 static_assert(std::is_same<decltype(s1), TSet<ComplexType>>::value); in test_deduction_guides()
144 … static_assert(std::is_same<decltype(s2), TSet<ComplexType, degenerate_hash<ComplexType>>>::value); in test_deduction_guides()
147 TSet s3(v.begin(), v.end(), 5, degenerate_hash<ComplexType>(), std::less<ComplexType>()); in test_deduction_guides()
148 static_assert(std::is_same<decltype(s3), TSet<ComplexType, degenerate_hash<ComplexType>, in test_deduction_guides()
149 std::less<ComplexType>>>::value); in test_deduction_guides()
152 TSet s4(v.begin(), v.end(), 5, degenerate_hash<ComplexType>(), std::less<ComplexType>(), in test_deduction_guides()
154 static_assert(std::is_same<decltype(s4), TSet<ComplexType, degenerate_hash<ComplexType>, in test_deduction_guides()
155 std::less<ComplexType>, custom_allocator_type>>::value); in test_deduction_guides()
159 static_assert(std::is_same<decltype(s5), TSet<ComplexType, std::hash<ComplexType>, in test_deduction_guides()
160 std::equal_to<ComplexType>, custom_allocator_type>>::value); in test_deduction_guides()
164 static_assert(std::is_same<decltype(s6), TSet<ComplexType, degenerate_hash<ComplexType>, in test_deduction_guides()
165 std::equal_to<ComplexType>, custom_allocator_type>>::value); in test_deduction_guides()
169 static_assert(std::is_same<decltype(s7), TSet<ComplexType>>::value); in test_deduction_guides()
173 … static_assert(std::is_same<decltype(s8), TSet<ComplexType, degenerate_hash<ComplexType>>>::value); in test_deduction_guides()
176 TSet s9(l, 5, degenerate_hash<ComplexType>(), std::less<ComplexType>()); in test_deduction_guides()
177 static_assert(std::is_same<decltype(s9), TSet<ComplexType, degenerate_hash<ComplexType>, in test_deduction_guides()
178 std::less<ComplexType>>>::value); in test_deduction_guides()
181 … TSet s10(l, 5, degenerate_hash<ComplexType>(), std::less<ComplexType>(), custom_allocator_type{}); in test_deduction_guides()
182 static_assert(std::is_same<decltype(s10), TSet<ComplexType, degenerate_hash<ComplexType>, in test_deduction_guides()
183 std::less<ComplexType>, custom_allocator_type>>::value); in test_deduction_guides()
187 static_assert(std::is_same<decltype(s11), TSet<ComplexType, std::hash<ComplexType>, in test_deduction_guides()
188 std::equal_to<ComplexType>, custom_allocator_type>>::value); in test_deduction_guides()
191 TSet s12(l, 5, std::hash<ComplexType>(), custom_allocator_type{}); in test_deduction_guides()
192 static_assert(std::is_same<decltype(s12), TSet<ComplexType, std::hash<ComplexType>, in test_deduction_guides()
193 std::equal_to<ComplexType>, custom_allocator_type>>::value); in test_deduction_guides()
197 static_assert(std::is_same<decltype(s13), decltype(s1)>::value); in test_deduction_guides()
202 static_assert(std::is_same<decltype(s14), decltype(s5)>::value); in test_deduction_guides()
205 TSet s15(std::move(s1)); in test_deduction_guides()
206 static_assert(std::is_same<decltype(s15), decltype(s1)>::value); in test_deduction_guides()
209 TSet s16(std::move(s5), custom_allocator_type{}); in test_deduction_guides()
211 static_assert(std::is_same<decltype(s16), decltype(s5)>::value); in test_deduction_guides()
261 check_heterogeneous_functions_key_string<oneapi::tbb::concurrent_unordered_set, std::string>();
324 …check_heterogeneous_functions_key_string<oneapi::tbb::concurrent_unordered_multiset, std::string>(…