Lines Matching refs:array
40 std::array<T, 5> array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() local
47 test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end()); in tests()
49 _assert(&ref0 == &array[0]); in tests()
52 _assert(&ref1 == &array[1]); in tests()
55 _assert(&ref2 == &array[2]); in tests()
58 _assert(&ref3 == &array[3]); in tests()
61 _assert(&ref4 == &array[4]); in tests()
68 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
70 _assert(&ref0 == &array[0]); in tests()
73 _assert(&ref1 == &array[1]); in tests()
76 _assert(&ref2 == &array[2]); in tests()
79 _assert(&ref3 == &array[3]); in tests()
82 _assert(&ref4 == &array[4]); in tests()
89 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests()
91 _assert(&ref0 == &array[0]); in tests()
94 _assert(&ref1 == &array[1]); in tests()
97 _assert(&ref2 == &array[2]); in tests()
100 _assert(&ref3 == &array[3]); in tests()
103 _assert(&ref4 == &array[4]); in tests()
110 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests()
112 _assert(&ref0 == &array[0]); in tests()
115 _assert(&ref1 == &array[1]); in tests()
118 _assert(&ref2 == &array[2]); in tests()
121 _assert(&ref3 == &array[3]); in tests()
124 _assert(&ref4 == &array[4]); in tests()
131 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
133 _assert(&ref0 == &array[0]); in tests()
136 _assert(&ref1 == &array[1]); in tests()
139 _assert(&ref2 == &array[2]); in tests()
142 _assert(&ref3 == &array[3]); in tests()
145 _assert(&ref4 == &array[4]); in tests()
154 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests()
181 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
212 …libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end() - 1… in tests()