• Home
  • Raw
  • Download

Lines Matching refs:v1

50   vector <int> v1(10);  in rotate1()  local
51 __iota(v1.begin(), v1.end(), 0); in rotate1()
53 rotate(v1.begin(), v1.begin()+1, v1.end()); in rotate1()
54 CPPUNIT_ASSERT(v1[0]==1); in rotate1()
55 CPPUNIT_ASSERT(v1[1]==2); in rotate1()
56 CPPUNIT_ASSERT(v1[2]==3); in rotate1()
57 CPPUNIT_ASSERT(v1[3]==4); in rotate1()
58 CPPUNIT_ASSERT(v1[4]==5); in rotate1()
59 CPPUNIT_ASSERT(v1[5]==6); in rotate1()
60 CPPUNIT_ASSERT(v1[6]==7); in rotate1()
61 CPPUNIT_ASSERT(v1[7]==8); in rotate1()
62 CPPUNIT_ASSERT(v1[8]==9); in rotate1()
63 CPPUNIT_ASSERT(v1[9]==0); in rotate1()
65 rotate(v1.begin(), v1.begin()+2, v1.end()); in rotate1()
66 CPPUNIT_ASSERT(v1[0]==3); in rotate1()
67 CPPUNIT_ASSERT(v1[1]==4); in rotate1()
68 CPPUNIT_ASSERT(v1[2]==5); in rotate1()
69 CPPUNIT_ASSERT(v1[3]==6); in rotate1()
70 CPPUNIT_ASSERT(v1[4]==7); in rotate1()
71 CPPUNIT_ASSERT(v1[5]==8); in rotate1()
72 CPPUNIT_ASSERT(v1[6]==9); in rotate1()
73 CPPUNIT_ASSERT(v1[7]==0); in rotate1()
74 CPPUNIT_ASSERT(v1[8]==1); in rotate1()
75 CPPUNIT_ASSERT(v1[9]==2); in rotate1()
77 rotate(v1.begin(), v1.begin()+7, v1.end()); in rotate1()
78 CPPUNIT_ASSERT(v1[0]==0); in rotate1()
79 CPPUNIT_ASSERT(v1[1]==1); in rotate1()
80 CPPUNIT_ASSERT(v1[2]==2); in rotate1()
81 CPPUNIT_ASSERT(v1[3]==3); in rotate1()
82 CPPUNIT_ASSERT(v1[4]==4); in rotate1()
83 CPPUNIT_ASSERT(v1[5]==5); in rotate1()
84 CPPUNIT_ASSERT(v1[6]==6); in rotate1()
85 CPPUNIT_ASSERT(v1[7]==7); in rotate1()
86 CPPUNIT_ASSERT(v1[8]==8); in rotate1()
87 CPPUNIT_ASSERT(v1[9]==9); in rotate1()
106 vector <int> v1(10); in rotcopy1() local
107 __iota(v1.begin(), v1.end(), 0); in rotcopy1()
108 vector <int> v2(v1.size()); in rotcopy1()
110 rotate_copy(v1.begin(), v1.begin()+1, v1.end(), v2.begin()); in rotcopy1()
122 rotate_copy(v1.begin(), v1.begin()+3, v1.end(), v2.begin()); in rotcopy1()