Lines Matching refs:cp

40 void CheckConstIterator( const Vector& u, int i, const Iterator& cp ) {  in CheckConstIterator()  argument
41 typename Vector::const_reference pref = *cp; in CheckConstIterator()
43 typename Vector::difference_type delta = cp-u.begin(); in CheckConstIterator()
111 typename V::const_iterator cp = u.begin(); in TestSequentialFor() local
112 REQUIRE( cp == v.cbegin() ); in TestSequentialFor()
113 REQUIRE( (*cp).is_const() ); in TestSequentialFor()
114 REQUIRE( (cp->is_const()) ); in TestSequentialFor()
115 REQUIRE( (*cp == v.front()) ); in TestSequentialFor()
117 CheckConstIterator(u,i,cp); in TestSequentialFor()
118 V::const_iterator &cpr = ++cp; in TestSequentialFor()
119 REQUIRE_MESSAGE( (&cpr == &cp), "pre-increment not returning a reference?"); in TestSequentialFor()
123 cp = u.end(); in TestSequentialFor()
124 REQUIRE( cp == v.cend() ); in TestSequentialFor()
127 V::const_iterator &cpr = --cp; in TestSequentialFor()
128 REQUIRE_MESSAGE( &cpr == &cp, "pre-decrement not returning a reference?"); in TestSequentialFor()
130 typename V::const_iterator cp_old = cp--; in TestSequentialFor()
133 typename V::const_iterator cp_new = cp++; in TestSequentialFor()
137 CheckConstIterator(u,i,cp); in TestSequentialFor()
142 cp = u.begin(); in TestSequentialFor()
144 CheckConstIterator(u,int(k),cp); in TestSequentialFor()
147 V::const_iterator &cpr = (cp += delta); in TestSequentialFor()
148 REQUIRE_MESSAGE( (&cpr == &cp), "+= not returning a reference?"); in TestSequentialFor()
154 V::const_iterator &cpr = (cp -= delta); in TestSequentialFor()
155 REQUIRE_MESSAGE( (&cpr == &cp), "-= not returning a reference?"); in TestSequentialFor()
157 cp = cp - delta; // Test operator- in TestSequentialFor()