• Home
  • Raw
  • Download

Lines Matching refs:Container

70 template <typename Container>
71 void test_assign(Container c) in test_assign()
75 typename Container::size_type count = 2; in test_assign()
76 typename Container::const_iterator first = c.begin(); in test_assign()
77 typename Container::const_iterator second = first; in test_assign()
78 typename Container::value_type value = *first; in test_assign()
88 cerr << "Failed " << typeid(Container).name() << " test_assign 1\n"; in test_assign()
93 Container const const_c = c; in test_assign()
98 template <typename Container>
99 void test_assign2(Container c) in test_assign2()
105 Container c2 = c; in test_assign2()
106 typename Container::const_iterator first = c2.begin(); in test_assign2()
107 typename Container::const_iterator last = c2.end(); in test_assign2()
108 typename Container::size_type size = c2.size(); in test_assign2()
113 cerr << "Failed " << typeid(Container).name() in test_assign2()
121 Container const const_c = c; in test_assign2()
126 template <typename Container>
127 void test_at(Container c) in test_at()
132 typename Container::reference r1 = at(arg1, 0)(c); in test_at()
134 cerr << "Failed " << typeid(Container).name() << " test_at 1\n"; in test_at()
138 typename Container::const_reference r2 = at(arg1, 0)(c); in test_at()
140 cerr << "Failed " << typeid(Container).name() << " test_at 2\n"; in test_at()
144 Container const const_c = c; in test_at()
147 typename Container::reference r3 = at(arg1, 0)(const_c); in test_at()
150 typename Container::const_reference r4 = at(arg1, 0)(const_c); in test_at()
152 cerr << "Failed " << typeid(Container).name() << " test_at 4\n"; in test_at()
157 template <typename Container>
158 void test_back(Container c) in test_back()
163 typename Container::reference r1 = back(arg1)(c); in test_back()
165 cerr << "Failed " << typeid(Container).name() << " test_back 1\n"; in test_back()
168 typename Container::const_reference r2 = back(arg1)(c); in test_back()
170 cerr << "Failed " << typeid(Container).name() << " test_back 2\n"; in test_back()
174 Container const const_c = c; in test_back()
177 typename Container::reference r3 = back(arg1)(const_c); in test_back()
180 typename Container::const_reference r4 = back(arg1)(const_c); in test_back()
182 cerr << "Failed " << typeid(Container).name() << " test_back 4\n"; in test_back()
187 template <typename Container>
188 void test_begin(Container c) in test_begin()
193 typename Container::iterator it1 = begin(arg1)(c); in test_begin()
195 cerr << "Failed " << typeid(Container).name() << " test_begin 1\n"; in test_begin()
198 typename Container::const_iterator it2 = begin(arg1)(c); in test_begin()
200 cerr << "Failed " << typeid(Container).name() << " test_begin 2\n"; in test_begin()
204 Container const const_c = c; in test_begin()
207 typename Container::iterator it3 = begin(arg1)(const_c); in test_begin()
210 typename Container::const_iterator it4 = begin(arg1)(const_c); in test_begin()
212 cerr << "Failed " << typeid(Container).name() << " test_begin 4\n"; in test_begin()
217 template <typename Container>
218 void test_capacity(Container c) in test_capacity()
223 typename Container::size_type s1 = capacity(arg1)(c); in test_capacity()
225 cerr << "Failed " << typeid(Container).name() << " test_capacity 1\n"; in test_capacity()
229 Container const const_c = c; in test_capacity()
230 typename Container::size_type s2 = capacity(arg1)(const_c); in test_capacity()
232 cerr << "Failed " << typeid(Container).name() << " test_capacity 2\n"; in test_capacity()
237 template <typename Container>
238 void test_clear(Container c) in test_clear()
245 cerr << "Failed " << typeid(Container).name() << " test_clear 1\n"; in test_clear()
250 Container const const_c = c; in test_clear()
255 template <typename Container>
256 void test_empty(Container c) in test_empty()
261 typename Container::size_type s1 = empty(arg1)(c); in test_empty()
263 cerr << "Failed " << typeid(Container).name() << " test_empty 1\n"; in test_empty()
267 Container const const_c = c; in test_empty()
268 typename Container::size_type s2 = empty(arg1)(const_c); in test_empty()
270 cerr << "Failed " << typeid(Container).name() << " test_empty 2\n"; in test_empty()
275 template <typename Container>
276 void test_end(Container c) in test_end()
281 typename Container::iterator it1 = end(arg1)(c); in test_end()
283 cerr << "Failed " << typeid(Container).name() << " test_end 1\n"; in test_end()
286 typename Container::const_iterator it2 = end(arg1)(c); in test_end()
288 cerr << "Failed " << typeid(Container).name() << " test_end 2\n"; in test_end()
292 Container const const_c = c; in test_end()
295 typename Container::iterator it3 = end(arg1)(const_c); in test_end()
298 typename Container::const_iterator it4 = end(arg1)(const_c); in test_end()
300 cerr << "Failed " << typeid(Container).name() << " test_end 4\n"; in test_end()
305 template <typename Container>
306 void test_erase(Container c) in test_erase()
313 Container const const_c = c; in test_erase()
315 typename Container::size_type size = c.size(); in test_erase()
316 typename Container::iterator c_begin = c.begin(); in test_erase()
319 cerr << "Failed " << typeid(Container).name() << " test_erase 1\n"; in test_erase()
324 typename Container::iterator c_end = c.end(); in test_erase()
327 cerr << "Failed " << typeid(Container).name() << " test_erase 2\n"; in test_erase()
337 template <typename Container>
338 void test_map_erase(Container c) in test_map_erase()
348 typename Container::value_type const value = *c.begin(); in test_map_erase()
349 typename Container::key_type const key = value.first; in test_map_erase()
350 typename Container::size_type const removed = in test_map_erase()
353 cerr << "Failed " << typeid(Container).name() << " test_map_erase 1\n"; in test_map_erase()
358 template <typename Container>
359 void test_set_erase(Container c) in test_set_erase()
369 typename Container::value_type const value = *c.begin(); in test_set_erase()
370 typename Container::key_type const key = value; in test_set_erase()
371 typename Container::size_type const removed = in test_set_erase()
374 cerr << "Failed " << typeid(Container).name() << " test_set_erase 1\n"; in test_set_erase()
379 template <typename Container>
380 void test_front(Container c) in test_front()
385 typename Container::reference r1 = front(arg1)(c); in test_front()
387 cerr << "Failed " << typeid(Container).name() << " test_front 1\n"; in test_front()
390 typename Container::const_reference r2 = front(arg1)(c); in test_front()
392 cerr << "Failed " << typeid(Container).name() << " test_front 2\n"; in test_front()
396 Container const const_c = c; in test_front()
399 typename Container::reference r3 = front(arg1)(const_c); in test_front()
402 typename Container::const_reference r4 = front(arg1)(const_c); in test_front()
404 cerr << "Failed " << typeid(Container).name() << " test_front 4\n"; in test_front()
409 template <typename Container>
410 void test_get_allocator(Container c) in test_get_allocator()
415 Container const const_c = c; in test_get_allocator()
417 typename Container::allocator_type a1 = get_allocator(arg1)(c); in test_get_allocator()
419 cerr << "Failed " << typeid(Container).name() << " test_get_allocator 1\n"; in test_get_allocator()
423 typename Container::allocator_type a2 = get_allocator(arg1)(const_c); in test_get_allocator()
425 cerr << "Failed " << typeid(Container).name() << " test_get_allocator 2\n"; in test_get_allocator()
430 template <typename Container>
431 void test_insert(Container c) in test_insert()
436 typename Container::value_type const value = *c.begin(); in test_insert()
437 typename Container::iterator it = insert(arg1, c.begin(), value)(c); in test_insert()
439 cerr << "Failed " << typeid(Container).name() << " test_insert 1\n"; in test_insert()
443 typename Container::size_type size = c.size(); in test_insert()
446 cerr << "Failed " << typeid(Container).name() << " test_insert 2\n"; in test_insert()
450 Container const const_c = c; in test_insert()
454 cerr << "Failed " << typeid(Container).name() << " test_insert 3\n"; in test_insert()
629 template <typename Container>
630 void test_key_comp(Container c) in test_key_comp()
635 typename Container::key_compare comp = key_comp(arg1)(c); in test_key_comp()
637 Container const const_c = c; in test_key_comp()
641 template <typename Container>
642 void test_max_size(Container c) in test_max_size()
647 Container const const_c = c; in test_max_size()
649 typename Container::size_type s1 = max_size(arg1)(c); in test_max_size()
651 cerr << "Failed " << typeid(Container).name() << " test_max_size 1\n"; in test_max_size()
655 typename Container::size_type s2 = max_size(arg1)(const_c); in test_max_size()
657 cerr << "Failed " << typeid(Container).name() << " test_max_size 2\n"; in test_max_size()
662 template <typename Container>
663 void test_pop_back(Container c) in test_pop_back()
668 Container const const_c = c; in test_pop_back()
670 typename Container::size_type size = c.size(); in test_pop_back()
674 cerr << "Failed " << typeid(Container).name() << " test_pop_back 1\n"; in test_pop_back()
683 template <typename Container>
684 void test_pop_front(Container c) in test_pop_front()
689 Container const const_c = c; in test_pop_front()
691 typename Container::size_type size = c.size(); in test_pop_front()
695 cerr << "Failed " << typeid(Container).name() << " test_pop_front 1\n"; in test_pop_front()
703 template <typename Container>
704 void test_push_back(Container c) in test_push_back()
710 Container const const_c = c; in test_push_back()
712 typename Container::value_type data = *c.begin(); in test_push_back()
713 typename Container::size_type size = c.size(); in test_push_back()
716 cerr << "Failed " << typeid(Container).name() << " test_push_back 1\n"; in test_push_back()
724 template <typename Container>
725 void test_push_front(Container c) in test_push_front()
731 Container const const_c = c; in test_push_front()
733 typename Container::value_type data = *c.begin(); in test_push_front()
734 typename Container::size_type size = c.size(); in test_push_front()
737 cerr << "Failed " << typeid(Container).name() << " test_push_front 1\n"; in test_push_front()
745 template <typename Container>
746 void test_rbegin(Container c) in test_rbegin()
751 typename Container::reverse_iterator it1 = rbegin(arg1)(c); in test_rbegin()
752 typename Container::reverse_iterator it1_test = c.rbegin(); in test_rbegin()
754 cerr << "Failed " << typeid(Container).name() << " test_rbegin 1\n"; in test_rbegin()
757 typename Container::const_reverse_iterator it2 = rbegin(arg1)(c); in test_rbegin()
758 typename Container::const_reverse_iterator it2_test = c.rbegin(); in test_rbegin()
760 cerr << "Failed " << typeid(Container).name() << " test_rbegin 2\n"; in test_rbegin()
764 Container const const_c = c; in test_rbegin()
767 typename Container::reverse_iterator it3 = rbegin(arg1)(const_c); in test_rbegin()
770 typename Container::const_reverse_iterator it4 = rbegin(arg1)(const_c); in test_rbegin()
773 cerr << "Failed " << typeid(Container).name() << " test_rbegin 4\n"; in test_rbegin()
778 template <typename Container>
779 void test_rend(Container c) in test_rend()
784 typename Container::reverse_iterator it1 = rend(arg1)(c); in test_rend()
785 typename Container::reverse_iterator it1_test = c.rend(); in test_rend()
787 cerr << "Failed " << typeid(Container).name() << " test_rend 1\n"; in test_rend()
790 typename Container::const_reverse_iterator it2 = rend(arg1)(c); in test_rend()
791 typename Container::const_reverse_iterator it2_test = c.rend(); in test_rend()
793 cerr << "Failed " << typeid(Container).name() << " test_rend 2\n"; in test_rend()
797 Container const const_c = c; in test_rend()
800 typename Container::reverse_iterator it3 = rend(arg1)(const_c); in test_rend()
803 typename Container::const_reverse_iterator it4 = rend(arg1)(const_c); in test_rend()
806 cerr << "Failed " << typeid(Container).name() << " test_rend 4\n"; in test_rend()
811 template <typename Container>
812 void test_reserve(Container c) in test_reserve()
817 Container const const_c = c; in test_reserve()
819 typename Container::size_type count = 2 * c.size(); in test_reserve()
822 cerr << "Failed " << typeid(Container).name() << " test_reserve 1\n"; in test_reserve()
830 template <typename Container>
831 void test_resize(Container c) in test_resize()
836 Container const const_c = c; in test_resize()
838 typename Container::size_type new_size = 2 * c.size(); in test_resize()
841 cerr << "Failed " << typeid(Container).name() << " test_resize 1\n"; in test_resize()
846 typename Container::value_type value = *c.begin(); in test_resize()
849 cerr << "Failed " << typeid(Container).name() << " test_resize 2\n"; in test_resize()
861 template <typename Container>
862 void test_size(Container c) in test_size()
867 Container const const_c = c; in test_size()
869 typename Container::size_type s1 = size(arg1)(c); in test_size()
871 cerr << "Failed " << typeid(Container).name() << " test_size 1\n"; in test_size()
875 typename Container::size_type s2 = size(arg1)(const_c); in test_size()
877 cerr << "Failed " << typeid(Container).name() << " test_size 2\n"; in test_size()
882 template <typename Container>
883 void test_splice(Container c) in test_splice()
892 typename Container::iterator c_end; in test_splice()
893 typename Container::iterator c2_begin; in test_splice()
894 typename Container::iterator c2_end; in test_splice()
895 typename Container::size_type size = c.size(); in test_splice()
897 Container const copy = c; in test_splice()
898 Container const copy2 = build_list(); in test_splice()
899 Container c2 = copy2; in test_splice()
905 cerr << "Failed " << typeid(Container).name() << " test_splice 1\n"; in test_splice()
916 cerr << "Failed " << typeid(Container).name() << " test_splice 2\n"; in test_splice()
935 template <typename Container>
936 void test_value_comp(Container c) in test_value_comp()
941 typename Container::value_compare comp = value_comp(arg1)(c); in test_value_comp()
943 Container const const_c = c; in test_value_comp()