Lines Matching refs:p2
21 void test_local_erase(const PolyCollection& p2) in test_local_erase() argument
25 for(size_type i=0;i<p2.template size<Type>();++i){ in test_local_erase()
26 PolyCollection p=p2; in test_local_erase()
29 BOOST_TEST(p.template size<Type>()==p2.template size<Type>()-1); in test_local_erase()
34 void test_local_range_erase(const PolyCollection& p2) in test_local_range_erase() argument
38 for(size_type i=0;i<=p2.template size<Type>();++i){ in test_local_range_erase()
39 for(size_type j=i;j<=p2.template size<Type>();++j){ in test_local_range_erase()
40 PolyCollection p=p2; in test_local_range_erase()
45 BOOST_TEST(p.template size<Type>()==p2.template size<Type>()-(j-i)); in test_local_range_erase()
51 void test_local_clear(const PolyCollection& p2) in test_local_clear() argument
53 PolyCollection p=p2; in test_local_clear()
56 BOOST_TEST(p.size()==p2.size()-p2.template size<Type>()); in test_local_clear()
64 PolyCollection p,p2; in test_erasure() local
67 fill<constraints<is_copy_constructible>,Types...>(p2,v,5); in test_erasure()
68 auto sit=p2.segment_traversal().begin(); in test_erasure()
69 p2.clear(sit->type_info()); in test_erasure()
71 p2.clear(sit->type_info()); in test_erasure()
73 for(size_type i=0;i<p2.size();++i){ in test_erasure()
74 p=p2; in test_erasure()
77 BOOST_TEST(p.size()==p2.size()-1); in test_erasure()
80 for(auto s:p2.segment_traversal()){ in test_erasure()
82 for(size_type i=0;i<p2.size(info);++i){ in test_erasure()
83 p=p2; in test_erasure()
86 BOOST_TEST(p.size(info)==p2.size(info)-1); in test_erasure()
91 p2.template is_registered<Types>()?test_local_erase<Types>(p2),0:0)...); in test_erasure()
93 for(size_type i=0;i<=p2.size();++i){ in test_erasure()
94 for(size_type j=i;j<=p2.size();++j){ in test_erasure()
95 p=p2; in test_erasure()
100 BOOST_TEST(p.size()==p2.size()-(j-i)); in test_erasure()
104 for(auto s:p2.segment_traversal()){ in test_erasure()
106 for(size_type i=0;i<=p2.size(info);++i){ in test_erasure()
107 for(size_type j=i;j<=p2.size(info);++j){ in test_erasure()
108 p=p2; in test_erasure()
113 BOOST_TEST(p.size(info)==p2.size(info)-(j-i)); in test_erasure()
118 do_((p2.template is_registered<Types>()? in test_erasure()
119 test_local_range_erase<Types>(p2),0:0)...); in test_erasure()
121 p=p2; in test_erasure()
125 for(auto s:p2.segment_traversal()){ in test_erasure()
127 p=p2; in test_erasure()
130 BOOST_TEST(p.size()==p2.size()-p2.size(info)); in test_erasure()
133 do_((p2.template is_registered<Types>()? in test_erasure()
134 test_local_clear<Types>(p2),0:0)...); in test_erasure()