Lines Matching refs:ints
100 vector<int> ints; in copy_n_test() local
103 copy_n(istream_int_ite(istr), 2, back_inserter(ints)); in copy_n_test()
104 CPPUNIT_ASSERT( ints.size() == 2 ); in copy_n_test()
105 CPPUNIT_ASSERT( ints[0] == 11 ); in copy_n_test()
106 CPPUNIT_ASSERT( ints[1] == 22 ); in copy_n_test()
107 ints.clear(); in copy_n_test()
139 vector<int> ints; in copy_n_test() local
141 itr = copy_n(itr, 0, back_inserter(ints)).first; in copy_n_test()
142 CPPUNIT_ASSERT( ints.empty() ); in copy_n_test()
143 itr = copy_n(itr, -1, back_inserter(ints)).first; in copy_n_test()
144 CPPUNIT_ASSERT( ints.empty() ); in copy_n_test()
145 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
146 CPPUNIT_ASSERT( ints.size() == 2 ); in copy_n_test()
147 CPPUNIT_ASSERT( ints[0] == 1 ); in copy_n_test()
148 CPPUNIT_ASSERT( ints[1] == 2 ); in copy_n_test()
149 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
150 CPPUNIT_ASSERT( ints.size() == 4 ); in copy_n_test()
151 CPPUNIT_ASSERT( ints[2] == 3 ); in copy_n_test()
152 CPPUNIT_ASSERT( ints[3] == 4 ); in copy_n_test()
153 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
154 CPPUNIT_ASSERT( ints.size() == 6 ); in copy_n_test()
155 CPPUNIT_ASSERT( ints[4] == 5 ); in copy_n_test()
156 CPPUNIT_ASSERT( ints[5] == 6 ); in copy_n_test()