Lines Matching refs:ptr

47 		test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end());  in tests()  local
48 QualT& ref = *ptr; in tests()
52 _assert(ptr->i == 0); in tests()
53 _assert(&ptr->i == &array[0].i); in tests()
60 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
61 QualT& ref = *ptr; in tests()
65 _assert(ptr->i == 1); in tests()
66 _assert(&ptr->i == &array[1].i); in tests()
73 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests() local
74 QualT& ref = *ptr; in tests()
78 _assert(ptr->i == 2); in tests()
79 _assert(&ptr->i == &array[2].i); in tests()
86 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests() local
87 QualT& ref = *ptr; in tests()
91 _assert(ptr->i == 4); in tests()
92 _assert(&ptr->i == &array[4].i); in tests()
101 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
104 (void)*ptr; in tests()
105 (void)ptr->i; in tests()
115 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests() local
118 (void)*ptr; in tests()
122 (void)ptr->i; in tests()
130 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end()); in tests() local
133 (void)*ptr; in tests()
137 (void)ptr->i; in tests()
147 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests() local
150 (void)*ptr; in tests()
154 (void)ptr->i; in tests()