Lines Matching refs:d

52   deque<int> d;  in deque1()  local
53 d.push_back(4); in deque1()
54 d.push_back(9); in deque1()
55 d.push_back(16); in deque1()
56 d.push_front(1); in deque1()
58 CPPUNIT_ASSERT( d[0] == 1 ); in deque1()
59 CPPUNIT_ASSERT( d[1] == 4 ); in deque1()
60 CPPUNIT_ASSERT( d[2] == 9 ); in deque1()
61 CPPUNIT_ASSERT( d[3] == 16 ); in deque1()
63 d.pop_front(); in deque1()
64 d[2] = 25; in deque1()
66 CPPUNIT_ASSERT( d[0] == 4 ); in deque1()
67 CPPUNIT_ASSERT( d[1] == 9 ); in deque1()
68 CPPUNIT_ASSERT( d[2] == 25 ); in deque1()
71 deque<int>::iterator dit = d.begin(); in deque1()
72 deque<int>::const_iterator cdit(d.begin()); in deque1()
82 deque<int> d; in insert() local
83 d.push_back(0); in insert()
84 d.push_back(1); in insert()
85 d.push_back(2); in insert()
86 CPPUNIT_ASSERT( d.size() == 3 ); in insert()
91 dit = d.insert(d.begin(), 3); in insert()
92 CPPUNIT_ASSERT( dit != d.end() ); in insert()
94 CPPUNIT_ASSERT( d.size() == 4 ); in insert()
95 CPPUNIT_ASSERT( d[0] == 3 ); in insert()
98 dit = d.insert(d.begin() + 1, 4); in insert()
99 CPPUNIT_ASSERT( dit != d.end() ); in insert()
101 CPPUNIT_ASSERT( d.size() == 5 ); in insert()
102 CPPUNIT_ASSERT( d[1] == 4 ); in insert()
105 dit = d.insert(d.end(), 5); in insert()
106 CPPUNIT_ASSERT( dit != d.end() ); in insert()
108 CPPUNIT_ASSERT( d.size() == 6 ); in insert()
109 CPPUNIT_ASSERT( d[5] == 5 ); in insert()
112 dit = d.insert(d.end() - 1, 6); in insert()
113 CPPUNIT_ASSERT( dit != d.end() ); in insert()
115 CPPUNIT_ASSERT( d.size() == 7 ); in insert()
116 CPPUNIT_ASSERT( d[5] == 6 ); in insert()
119 d.insert(d.begin(), 2, 7); in insert()
120 CPPUNIT_ASSERT( d.size() == 9 ); in insert()
121 CPPUNIT_ASSERT( d[0] == 7 ); in insert()
122 CPPUNIT_ASSERT( d[1] == 7 ); in insert()
126 d.insert(d.begin() + 1, 2, 8); in insert()
127 CPPUNIT_ASSERT( d.size() == 11 ); in insert()
128 CPPUNIT_ASSERT( d[1] == 8 ); in insert()
129 CPPUNIT_ASSERT( d[2] == 8 ); in insert()
132 d.insert(d.begin() + 3, 2, 9); in insert()
133 CPPUNIT_ASSERT( d.size() == 13 ); in insert()
134 CPPUNIT_ASSERT( d[3] == 9 ); in insert()
135 CPPUNIT_ASSERT( d[4] == 9 ); in insert()
138 d.insert(d.end(), 2, 10); in insert()
139 CPPUNIT_ASSERT( d.size() == 15 ); in insert()
140 CPPUNIT_ASSERT( d[14] == 10 ); in insert()
141 CPPUNIT_ASSERT( d[13] == 10 ); in insert()
145 d.insert(d.end() - 1, 2, 11); in insert()
146 CPPUNIT_ASSERT( d.size() == 17 ); in insert()
147 CPPUNIT_ASSERT( d[15] == 11 ); in insert()
148 CPPUNIT_ASSERT( d[14] == 11 ); in insert()
151 d.insert(d.end() - 3, 2, 12); in insert()
152 CPPUNIT_ASSERT( d.size() == 19 ); in insert()
153 CPPUNIT_ASSERT( d[15] == 12 ); in insert()
154 CPPUNIT_ASSERT( d[14] == 12 ); in insert()
158 deque<int> d; in at() local
159 deque<int> const& cd = d; in at()
161 d.push_back(10); in at()
162 CPPUNIT_ASSERT( d.at(0) == 10 ); in at()
163 d.at(0) = 20; in at()
169 d.at(1) = 20; in at()