Lines Matching full:container

19 template <template <typename...> typename Container, typename Elem, typename Order>
23 Container<Elem> l1; in test_sequence_container_spaceship_with_type()
24 Container<Elem> l2; in test_sequence_container_spaceship_with_type()
29 Container<Elem> l1{1, 1}; in test_sequence_container_spaceship_with_type()
30 Container<Elem> l2{1, 1}; in test_sequence_container_spaceship_with_type()
35 Container<Elem> l1{1, 1}; in test_sequence_container_spaceship_with_type()
36 Container<Elem> l2{1, 2}; in test_sequence_container_spaceship_with_type()
41 Container<Elem> l1{1, 3}; in test_sequence_container_spaceship_with_type()
42 Container<Elem> l2{1, 2}; in test_sequence_container_spaceship_with_type()
47 Container<Elem> l1{1}; in test_sequence_container_spaceship_with_type()
48 Container<Elem> l2{1, 2}; in test_sequence_container_spaceship_with_type()
53 Container<Elem> l1{1, 2}; in test_sequence_container_spaceship_with_type()
54 Container<Elem> l2{1}; in test_sequence_container_spaceship_with_type()
59 Container<Elem> l1{1, std::numeric_limits<int>::min()}; in test_sequence_container_spaceship_with_type()
60 Container<Elem> l2{1, 2}; in test_sequence_container_spaceship_with_type()
66 template <template <typename...> typename Container>
68 // The container should fulfill `std::three_way_comparable` in test_sequence_container_spaceship()
69 static_assert(std::three_way_comparable<Container<int>>); in test_sequence_container_spaceship()
72 test_sequence_container_spaceship_with_type<Container, int, std::strong_ordering>(); in test_sequence_container_spaceship()
73 test_sequence_container_spaceship_with_type<Container, StrongOrder, std::strong_ordering>(); in test_sequence_container_spaceship()
74 test_sequence_container_spaceship_with_type<Container, WeakOrder, std::weak_ordering>(); in test_sequence_container_spaceship()
75 test_sequence_container_spaceship_with_type<Container, PartialOrder, std::partial_ordering>(); in test_sequence_container_spaceship()
78 test_sequence_container_spaceship_with_type<Container, LessAndEqComp, std::weak_ordering>(); in test_sequence_container_spaceship()
82 static_assert(!std::three_way_comparable<Container<NonComparable>>); in test_sequence_container_spaceship()
90 typename Container,
96 Container<Elem> l1; in test_sequence_container_adaptor_spaceship_with_type()
97 ContainerAdaptor<Elem, Container<Elem>> ca1{l1}; in test_sequence_container_adaptor_spaceship_with_type()
98 Container<Elem> l2; in test_sequence_container_adaptor_spaceship_with_type()
99 ContainerAdaptor<Elem, Container<Elem>> ca2{l2}; in test_sequence_container_adaptor_spaceship_with_type()
104 Container<Elem> l1{1, 1}; in test_sequence_container_adaptor_spaceship_with_type()
105 ContainerAdaptor<Elem, Container<Elem>> ca1{l1}; in test_sequence_container_adaptor_spaceship_with_type()
106 Container<Elem> l2{1, 1}; in test_sequence_container_adaptor_spaceship_with_type()
107 ContainerAdaptor<Elem, Container<Elem>> ca2{l2}; in test_sequence_container_adaptor_spaceship_with_type()
112 Container<Elem> l1{1, 1}; in test_sequence_container_adaptor_spaceship_with_type()
113 ContainerAdaptor<Elem, Container<Elem>> ca1{l1}; in test_sequence_container_adaptor_spaceship_with_type()
114 Container<Elem> l2{1, 2}; in test_sequence_container_adaptor_spaceship_with_type()
115 ContainerAdaptor<Elem, Container<Elem>> ca2{l2}; in test_sequence_container_adaptor_spaceship_with_type()
120 Container<Elem> l1{1, 3}; in test_sequence_container_adaptor_spaceship_with_type()
121 ContainerAdaptor<Elem, Container<Elem>> ca1{l1}; in test_sequence_container_adaptor_spaceship_with_type()
122 Container<Elem> l2{1, 2}; in test_sequence_container_adaptor_spaceship_with_type()
123 ContainerAdaptor<Elem, Container<Elem>> ca2{l2}; in test_sequence_container_adaptor_spaceship_with_type()
128 Container<Elem> l1{1}; in test_sequence_container_adaptor_spaceship_with_type()
129 ContainerAdaptor<Elem, Container<Elem>> ca1{l1}; in test_sequence_container_adaptor_spaceship_with_type()
130 Container<Elem> l2{1, 2}; in test_sequence_container_adaptor_spaceship_with_type()
131 ContainerAdaptor<Elem, Container<Elem>> ca2{l2}; in test_sequence_container_adaptor_spaceship_with_type()
136 Container<Elem> l1{1, 2}; in test_sequence_container_adaptor_spaceship_with_type()
137 ContainerAdaptor<Elem, Container<Elem>> ca1{l1}; in test_sequence_container_adaptor_spaceship_with_type()
138 Container<Elem> l2{1}; in test_sequence_container_adaptor_spaceship_with_type()
139 ContainerAdaptor<Elem, Container<Elem>> ca2{l2}; in test_sequence_container_adaptor_spaceship_with_type()
144 Container<Elem> l1{1, std::numeric_limits<int>::min()}; in test_sequence_container_adaptor_spaceship_with_type()
145 ContainerAdaptor<Elem, Container<Elem>> ca1{l1}; in test_sequence_container_adaptor_spaceship_with_type()
146 Container<Elem> l2{1, 2}; in test_sequence_container_adaptor_spaceship_with_type()
147 ContainerAdaptor<Elem, Container<Elem>> ca2{l2}; in test_sequence_container_adaptor_spaceship_with_type()
152 // Tests the `operator<=>` on sequence container adaptors
153 …plate <template <typename...> typename ContainerAdaptor, template <typename...> typename Container>
159 // The container should fulfill `std::three_way_comparable` in test_sequence_container_adaptor_spaceship()
160 static_assert(std::three_way_comparable<ContainerAdaptor<int, Container<int>>>); in test_sequence_container_adaptor_spaceship()
163 …test_sequence_container_adaptor_spaceship_with_type<ContainerAdaptor, Container, int, std::strong_… in test_sequence_container_adaptor_spaceship()
164 …test_sequence_container_adaptor_spaceship_with_type<ContainerAdaptor, Container, StrongOrder, std:… in test_sequence_container_adaptor_spaceship()
165 …test_sequence_container_adaptor_spaceship_with_type<ContainerAdaptor, Container, WeakOrder, std::w… in test_sequence_container_adaptor_spaceship()
167 Container, in test_sequence_container_adaptor_spaceship()
172 …test_sequence_container_adaptor_spaceship_with_type<ContainerAdaptor, Container, LessAndEqComp, st… in test_sequence_container_adaptor_spaceship()
178 template <template <typename...> typename Container, typename Key, typename Val, typename Order, ty…
182 Container<Key, Val, Compare> l1{{}, comp}; in test_ordered_map_container_spaceship_with_type()
183 Container<Key, Val, Compare> l2{{}, comp}; in test_ordered_map_container_spaceship_with_type()
188 Container<Key, Val, Compare> l1{{{1, 1}, {2, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
189 Container<Key, Val, Compare> l2{{{1, 1}, {2, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
194 Container<Key, Val, Compare> l1{{{1, 1}, {2, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
195 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
200 Container<Key, Val, Compare> l1{{{1, 1}, {2, 3}}, comp}; in test_ordered_map_container_spaceship_with_type()
201 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
206 Container<Key, Val, Compare> l1{{{1, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
207 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
212 Container<Key, Val, Compare> l1{{{1, 2}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
213 Container<Key, Val, Compare> l2{{{1, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
218 Container<Key, Val, Compare> l1{{{1, 1}, {2, std::numeric_limits<int>::min()}}, comp}; in test_ordered_map_container_spaceship_with_type()
219 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
225 Container<Key, Val, Compare> l1{{{1, 1}, {2, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
226 Container<Key, Val, Compare> l2{{{1, 1}, {2, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
229 Container<Key, Val, Compare> l3{{{1, 1}, {2, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
230 Container<Key, Val, Compare> l4{{{2, 1}, {2, 2}, {1, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
235 Container<Key, Val, Compare> l1{{{1, 1}, {2, 1}, {2, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
236 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
239 Container<Key, Val, Compare> l3{{{1, 1}, {2, 1}, {2, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
240 Container<Key, Val, Compare> l4{{{2, 2}, {2, 2}, {1, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
245 Container<Key, Val, Compare> l1{{{1, 1}, {2, 3}, {2, 3}}, comp}; in test_ordered_map_container_spaceship_with_type()
246 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
249 Container<Key, Val, Compare> l3{{{1, 1}, {2, 3}, {2, 3}}, comp}; in test_ordered_map_container_spaceship_with_type()
250 Container<Key, Val, Compare> l4{{{2, 2}, {2, 2}, {1, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
255 Container<Key, Val, Compare> l1{{{1, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
256 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}, {2, 2}, {3, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
259 Container<Key, Val, Compare> l3{{{1, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
260 Container<Key, Val, Compare> l4{{{3, 1}, {2, 2}, {2, 2}, {1, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
265 Container<Key, Val, Compare> l1{{{1, 2}, {2, 2}, {2, 2}, {3, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
266 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}}, comp}; in test_ordered_map_container_spaceship_with_type()
269 Container<Key, Val, Compare> l3{{{1, 2}, {2, 2}, {2, 2}, {3, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
270 Container<Key, Val, Compare> l4{{{2, 2}, {1, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
275 Container<Key, Val, Compare> l1{{{1, 1}, {2, std::numeric_limits<int>::min()}, {2, 3}}, comp}; in test_ordered_map_container_spaceship_with_type()
276 Container<Key, Val, Compare> l2{{{1, 1}, {2, 2}, {2, 3}}, comp}; in test_ordered_map_container_spaceship_with_type()
279 Container<Key, Val, Compare> l3{{{1, 1}, {2, std::numeric_limits<int>::min()}, {2, 3}}, comp}; in test_ordered_map_container_spaceship_with_type()
280 Container<Key, Val, Compare> l4{{{2, 3}, {2, 2}, {1, 1}}, comp}; in test_ordered_map_container_spaceship_with_type()
286 template <template <typename...> typename Container>
290 static_assert(!std::three_way_comparable<Container<int, NonComparable>>); in test_ordered_map_container_spaceship()
292 // The container should fulfill `std::three_way_comparable` in test_ordered_map_container_spaceship()
293 static_assert(std::three_way_comparable<Container<int, int>>); in test_ordered_map_container_spaceship()
296 …test_ordered_map_container_spaceship_with_type<Container, int, int, std::strong_ordering>(std::les… in test_ordered_map_container_spaceship()
297 …test_ordered_map_container_spaceship_with_type<Container, int, int, std::strong_ordering>(std::gre… in test_ordered_map_container_spaceship()
298 …test_ordered_map_container_spaceship_with_type<Container, int, StrongOrder, std::strong_ordering>(… in test_ordered_map_container_spaceship()
299 …test_ordered_map_container_spaceship_with_type<Container, int, StrongOrder, std::strong_ordering>(… in test_ordered_map_container_spaceship()
300 …test_ordered_map_container_spaceship_with_type<Container, int, WeakOrder, std::weak_ordering>(std:… in test_ordered_map_container_spaceship()
301 …test_ordered_map_container_spaceship_with_type<Container, int, WeakOrder, std::weak_ordering>(std:… in test_ordered_map_container_spaceship()
302 …test_ordered_map_container_spaceship_with_type<Container, int, PartialOrder, std::partial_ordering… in test_ordered_map_container_spaceship()
303 …test_ordered_map_container_spaceship_with_type<Container, int, PartialOrder, std::partial_ordering… in test_ordered_map_container_spaceship()
306 …test_ordered_map_container_spaceship_with_type<Container, int, LessAndEqComp, std::weak_ordering>(… in test_ordered_map_container_spaceship()
312 template <template <typename...> typename Container, typename Elem, typename Order, typename Compar…
316 Container<Elem, Compare> l1{{}, comp}; in test_ordered_set_spaceship_with_type()
317 Container<Elem, Compare> l2{{}, comp}; in test_ordered_set_spaceship_with_type()
322 Container<Elem, Compare> l1{{1, 1, 2}, comp}; in test_ordered_set_spaceship_with_type()
323 Container<Elem, Compare> l2{{1, 1, 2}, comp}; in test_ordered_set_spaceship_with_type()
328 Container<Elem, Compare> l1{{1, 1, 2, 3}, comp}; in test_ordered_set_spaceship_with_type()
329 Container<Elem, Compare> l2{{1, 2, 2, 4}, comp}; in test_ordered_set_spaceship_with_type()
334 Container<Elem, Compare> l1{{1, 2, 2, 4}, comp}; in test_ordered_set_spaceship_with_type()
335 Container<Elem, Compare> l2{{1, 1, 2, 3}, comp}; in test_ordered_set_spaceship_with_type()
340 Container<Elem, Compare> l1{{1, 1, 2, 2}, comp}; in test_ordered_set_spaceship_with_type()
341 Container<Elem, Compare> l2{{1, 1, 2, 2, 3}, comp}; in test_ordered_set_spaceship_with_type()
346 Container<Elem, Compare> l1{{1, 1, 2, 2, 3}, comp}; in test_ordered_set_spaceship_with_type()
347 Container<Elem, Compare> l2{{1, 1, 2, 2}, comp}; in test_ordered_set_spaceship_with_type()
351 if constexpr (std::is_same_v< Container<Elem>, std::multiset<PartialOrder>>) { in test_ordered_set_spaceship_with_type()
353 Container<Elem, Compare> l1{{1, std::numeric_limits<int>::min()}, comp}; in test_ordered_set_spaceship_with_type()
354 Container<Elem, Compare> l2{{1, 2}, comp}; in test_ordered_set_spaceship_with_type()
358 Container<Elem, Compare> l1{{1, std::numeric_limits<int>::max()}, comp}; in test_ordered_set_spaceship_with_type()
359 Container<Elem, Compare> l2{{1, 2}, comp}; in test_ordered_set_spaceship_with_type()
363 if constexpr (std::is_same_v< Container<Elem>, std::set<PartialOrder>>) { in test_ordered_set_spaceship_with_type()
366 Container<Elem, Compare> l1{{1, std::numeric_limits<int>::min()}, comp}; in test_ordered_set_spaceship_with_type()
367 Container<Elem, Compare> l2{{1, 2}, comp}; in test_ordered_set_spaceship_with_type()
371 Container<Elem, Compare> l1{{1, std::numeric_limits<int>::max()}, comp}; in test_ordered_set_spaceship_with_type()
372 Container<Elem, Compare> l2{{1, 2}, comp}; in test_ordered_set_spaceship_with_type()
377 Container<Elem, Compare> l1{{1, std::numeric_limits<int>::min()}, comp}; in test_ordered_set_spaceship_with_type()
378 Container<Elem, Compare> l2{{1, 2}, comp}; in test_ordered_set_spaceship_with_type()
382 Container<Elem, Compare> l1{{1, std::numeric_limits<int>::max()}, comp}; in test_ordered_set_spaceship_with_type()
383 Container<Elem, Compare> l2{{1, 2}, comp}; in test_ordered_set_spaceship_with_type()
389 template <template <typename...> typename Container>
393 static_assert(!std::three_way_comparable<Container<NonComparable>>); in test_ordered_set_container_spaceship()
395 // The container should fulfill `std::three_way_comparable` in test_ordered_set_container_spaceship()
396 static_assert(std::three_way_comparable<Container<int>>); in test_ordered_set_container_spaceship()
399 test_ordered_set_spaceship_with_type<Container, int, std::strong_ordering>(std::less{}); in test_ordered_set_container_spaceship()
400 test_ordered_set_spaceship_with_type<Container, int, std::strong_ordering>(std::greater{}); in test_ordered_set_container_spaceship()
401 test_ordered_set_spaceship_with_type<Container, StrongOrder, std::strong_ordering>(std::less{}); in test_ordered_set_container_spaceship()
402 …test_ordered_set_spaceship_with_type<Container, StrongOrder, std::strong_ordering>(std::greater{}); in test_ordered_set_container_spaceship()
403 test_ordered_set_spaceship_with_type<Container, WeakOrder, std::weak_ordering>(std::less{}); in test_ordered_set_container_spaceship()
404 test_ordered_set_spaceship_with_type<Container, WeakOrder, std::weak_ordering>(std::greater{}); in test_ordered_set_container_spaceship()
405 test_ordered_set_spaceship_with_type<Container, PartialOrder, std::partial_ordering>(std::less{}); in test_ordered_set_container_spaceship()
406 …test_ordered_set_spaceship_with_type<Container, PartialOrder, std::partial_ordering>(std::greater{… in test_ordered_set_container_spaceship()
409 test_ordered_set_spaceship_with_type<Container, LessAndEqComp, std::weak_ordering>(std::less{}); in test_ordered_set_container_spaceship()