Lines Matching refs:array
23 test_bounded_array<T, 5> array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() local
24 test_bounded_ptr<T> begin = array.begin(); in tests()
25 test_bounded_ptr<T> end = array.end(); in tests()
26 CHECK(begin.discard_bounds() == array.data()); in tests()
27 CHECK(end.unsafe_discard_bounds() == array.data() + 5); in tests()
30 test_bounded_array<T, 5> const array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() local
31 test_bounded_ptr<T const> begin = array.begin(); in tests()
32 test_bounded_ptr<T const> end = array.end(); in tests()
33 CHECK(begin.discard_bounds() == array.data()); in tests()
34 CHECK(end.unsafe_discard_bounds() == array.data() + 5); in tests()
39 test_bounded_array<T, 0> array = {}; in tests() local
40 test_bounded_ptr<T> begin = array.begin(); in tests()
41 test_bounded_ptr<T> end = array.end(); in tests()
42 CHECK(begin.unsafe_discard_bounds() == array.data()); in tests()
43 CHECK(end.unsafe_discard_bounds() == array.data()); in tests()
46 test_bounded_array<T, 0> const array = {}; in tests() local
47 test_bounded_ptr<T const> begin = array.begin(); in tests()
48 test_bounded_ptr<T const> end = array.end(); in tests()
49 CHECK(begin.unsafe_discard_bounds() == array.data()); in tests()
50 CHECK(end.unsafe_discard_bounds() == array.data()); in tests()