Lines Matching refs:v1
90 queue<Obj> v1; in swap_container_non_spec() local
93 v1.push( Obj() ); in swap_container_non_spec()
94 v1.back().v = -1; in swap_container_non_spec()
95 v1.push( Obj() ); in swap_container_non_spec()
96 v1.back().v = -2; in swap_container_non_spec()
105 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_non_spec()
108 swap( v1, v2 ); // this shouldn't try make it as v1.swap( v2 ), no queue::swap method! in swap_container_non_spec()
110 CPPUNIT_CHECK( v1.size() == 3 ); in swap_container_non_spec()
114 CPPUNIT_CHECK( v1.front().v == 1 || v1.front().v == 2 ); in swap_container_non_spec()
115 CPPUNIT_CHECK( v1.back().v == 1 || v1.back().v == 2 ); in swap_container_non_spec()
133 vector<Obj> v1; in swap_container_spec() local
136 v1.push_back( Obj() ); in swap_container_spec()
137 v1.push_back( Obj() ); in swap_container_spec()
139 v1[0].v = -1; in swap_container_spec()
140 v1[1].v = -2; in swap_container_spec()
150 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_spec()
153 swap( v1, v2 ); // this should has effect v1.swap( v2 ) in swap_container_spec()
155 CPPUNIT_CHECK( v1.size() == 3 ); in swap_container_spec()
158 CPPUNIT_CHECK( v1[0].v == 10 ); in swap_container_spec()
159 CPPUNIT_CHECK( v1[1].v == 11 ); in swap_container_spec()
160 CPPUNIT_CHECK( v1[2].v == 12 ); in swap_container_spec()