Lines Matching refs:array
25 std::array<T, 5> array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() local
33 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests()
37 _assert(&*res == &array[0]); in tests()
41 _assert(&*res == &array[1]); in tests()
45 _assert(&*res == &array[2]); in tests()
49 _assert(&*res == &array[3]); in tests()
53 _assert(&*res == &array[4]); in tests()
57 _assert(res == array.end()); in tests()
67 test_bounded_ptr<QualT> const ptr(array.end(), array.begin(), array.end()); in tests()
71 _assert(res == array.end()); in tests()
75 _assert(&*res == &array[4]); in tests()
79 _assert(&*res == &array[3]); in tests()
83 _assert(&*res == &array[2]); in tests()
87 _assert(&*res == &array[1]); in tests()
91 _assert(&*res == &array[0]); in tests()
97 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests()
99 _assert(&*ptr == &array[1]); in tests()
105 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests()
107 _assert(&*res == &array[0]); in tests()
110 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests()
112 _assert(&*res == &array[3]); in tests()
115 test_bounded_ptr<QualT> const ptr(array.begin() + 3, array.begin(), array.end()); in tests()
117 _assert(&*res == &array[1]); in tests()