Lines Matching refs:ptr

29 		test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end());  in tests()  local
30 _assert(&*ptr == &array[0]); in tests()
33 auto& ref = ++ptr; in tests()
34 _assert(&ref == &ptr); in tests()
35 _assert(&*ptr == &array[1]); in tests()
39 auto& ref = ++ptr; in tests()
40 _assert(&ref == &ptr); in tests()
41 _assert(&*ptr == &array[2]); in tests()
44 auto& ref = ++ptr; in tests()
45 _assert(&ref == &ptr); in tests()
46 _assert(&*ptr == &array[3]); in tests()
49 auto& ref = ++ptr; in tests()
50 _assert(&ref == &ptr); in tests()
51 _assert(&*ptr == &array[4]); in tests()
54 auto& ref = ++ptr; in tests()
55 _assert(&ref == &ptr); in tests()
59 auto& ref = --ptr; in tests()
60 _assert(&ref == &ptr); in tests()
61 _assert(&*ptr == &array[4]); in tests()
64 auto& ref = --ptr; in tests()
65 _assert(&ref == &ptr); in tests()
66 _assert(&*ptr == &array[3]); in tests()
69 auto& ref = --ptr; in tests()
70 _assert(&ref == &ptr); in tests()
71 _assert(&*ptr == &array[2]); in tests()
74 auto& ref = --ptr; in tests()
75 _assert(&ref == &ptr); in tests()
76 _assert(&*ptr == &array[1]); in tests()
79 auto& ref = --ptr; in tests()
80 _assert(&ref == &ptr); in tests()
81 _assert(&*ptr == &array[0]); in tests()
86 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests() local
87 _assert(&*ptr == &array[0]); in tests()
90 auto prev = ptr++; in tests()
92 _assert(&*ptr == &array[1]); in tests()
95 auto prev = ptr++; in tests()
97 _assert(&*ptr == &array[2]); in tests()
100 auto prev = ptr++; in tests()
102 _assert(&*ptr == &array[3]); in tests()
105 auto prev = ptr++; in tests()
107 _assert(&*ptr == &array[4]); in tests()
110 auto prev = ptr++; in tests()
112 _assert(ptr == array.end()); in tests()
115 auto prev = ptr--; in tests()
117 _assert(&*ptr == &array[4]); in tests()
120 auto prev = ptr--; in tests()
122 _assert(&*ptr == &array[3]); in tests()
125 auto prev = ptr--; in tests()
127 _assert(&*ptr == &array[2]); in tests()
130 auto prev = ptr--; in tests()
132 _assert(&*ptr == &array[1]); in tests()
135 auto prev = ptr--; in tests()
137 _assert(&*ptr == &array[0]); in tests()