Lines Matching refs:ptr
47 test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end()); in tests() local
48 QualT& ref0 = ptr[0]; in tests()
51 QualT& ref1 = ptr[1]; in tests()
54 QualT& ref2 = ptr[2]; in tests()
57 QualT& ref3 = ptr[3]; in tests()
60 QualT& ref4 = ptr[4]; in tests()
68 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
69 QualT& ref0 = ptr[-1]; in tests()
72 QualT& ref1 = ptr[0]; in tests()
75 QualT& ref2 = ptr[1]; in tests()
78 QualT& ref3 = ptr[2]; in tests()
81 QualT& ref4 = ptr[3]; in tests()
89 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests() local
90 QualT& ref0 = ptr[-2]; in tests()
93 QualT& ref1 = ptr[-1]; in tests()
96 QualT& ref2 = ptr[0]; in tests()
99 QualT& ref3 = ptr[1]; in tests()
102 QualT& ref4 = ptr[2]; in tests()
110 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests() local
111 QualT& ref0 = ptr[-4]; in tests()
114 QualT& ref1 = ptr[-3]; in tests()
117 QualT& ref2 = ptr[-2]; in tests()
120 QualT& ref3 = ptr[-1]; in tests()
123 QualT& ref4 = ptr[0]; in tests()
131 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests() local
132 QualT& ref0 = ptr[-5]; in tests()
135 QualT& ref1 = ptr[-4]; in tests()
138 QualT& ref2 = ptr[-3]; in tests()
141 QualT& ref3 = ptr[-2]; in tests()
144 QualT& ref4 = ptr[-1]; in tests()
154 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() local
157 (void)ptr[-4]; in tests()
161 (void)ptr[-3]; in tests()
165 (void)ptr[-2]; in tests()
169 (void)ptr[-1]; // trap in tests()
173 (void)ptr[0]; // trap in tests()
181 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
184 (void)ptr[-1]; in tests()
188 (void)ptr[0]; in tests()
192 (void)ptr[1]; in tests()
196 (void)ptr[2]; in tests()
200 (void)ptr[3]; in tests()
204 (void)ptr[4]; // trap in tests()
212 …libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end() - 1… in tests() local
215 (void)ptr[0]; // trap in tests()
219 (void)ptr[1]; in tests()
223 (void)ptr[2]; in tests()
227 (void)ptr[3]; in tests()
231 (void)ptr[4]; // trap in tests()
235 (void)ptr[5]; // trap in tests()