Lines Matching refs:v2
91 queue<Obj> v2; in swap_container_non_spec() local
98 v2.push( Obj() ); in swap_container_non_spec()
99 v2.back().v = 10; in swap_container_non_spec()
100 v2.push( Obj() ); in swap_container_non_spec()
101 v2.back().v = 11; in swap_container_non_spec()
102 v2.push( Obj() ); in swap_container_non_spec()
103 v2.back().v = 12; in swap_container_non_spec()
106 CPPUNIT_CHECK( v2.size() == 3 ); 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()
111 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_non_spec()
116 CPPUNIT_CHECK( v2.front().v == 1 || v2.front().v == 2 ); in swap_container_non_spec()
117 CPPUNIT_CHECK( v2.back().v == 1 || v2.back().v == 2 ); in swap_container_non_spec()
134 vector<Obj> v2; in swap_container_spec() local
142 v2.push_back( Obj() ); in swap_container_spec()
143 v2.push_back( Obj() ); in swap_container_spec()
144 v2.push_back( Obj() ); in swap_container_spec()
146 v2[0].v = 10; in swap_container_spec()
147 v2[1].v = 11; in swap_container_spec()
148 v2[2].v = 12; in swap_container_spec()
151 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_spec()
153 swap( v1, v2 ); // this should has effect v1.swap( v2 ) in swap_container_spec()
156 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_spec()
162 CPPUNIT_CHECK( v2[0].v == -1 ); in swap_container_spec()
163 CPPUNIT_CHECK( v2[1].v == -2 ); in swap_container_spec()