Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 25 of 55) sorted by relevance

123

/xnu-11215/tests/bounded_ptr_src/
H A Darith.difference.cpp28 test_bounded_ptr<Left> const a(array.begin(), array.begin(), array.end()); in tests()
29 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
34 test_bounded_ptr<Left> const a(array.begin() + 1, array.begin(), array.end()); in tests()
35 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
41 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
47 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
53 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
59 test_bounded_ptr<Right> const b(array.begin(), array.begin(), array.end()); in tests()
66 test_bounded_ptr<Left> const a(array.begin(), array.begin(), array.end()); in tests()
72 test_bounded_ptr<Left> const a(array.begin(), array.begin(), array.end()); in tests()
[all …]
H A Dcompare.equal.cpp59 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
60 test_bounded_ptr<TQual> const b(array.begin(), array.begin(), array.end()); in tests()
64 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
65 test_bounded_ptr<TQual> const b(array.begin() + 1, array.begin(), array.end()); in tests()
69 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
70 test_bounded_ptr<TQual> const b(array.begin() + 2, array.begin(), array.end()); in tests()
74 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
87 test_bounded_ptr<TQual> const b(array.begin(), array.begin(), array.end()); in tests()
100 test_bounded_ptr<TQual> const b(array.begin(), array.begin(), array.end()); in tests()
111 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.begin() + 1); in tests()
[all …]
H A Dcompare.order.cpp75 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
76 test_bounded_ptr<TQual> const b(array.begin(), array.begin(), array.end()); in tests()
80 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
81 test_bounded_ptr<TQual> const b(array.begin() + 1, array.begin(), array.end()); in tests()
85 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
86 test_bounded_ptr<TQual> const b(array.begin() + 2, array.begin(), array.end()); in tests()
90 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
103 test_bounded_ptr<TQual> const b(array.begin(), array.begin(), array.end()); in tests()
116 test_bounded_ptr<TQual> const b(array.begin(), array.begin(), array.end()); in tests()
127 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.begin() + 1); in tests()
[all …]
H A Dcompare.order.raw.cpp78 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
79 TQual* b = array.begin(); in tests()
87 test_bounded_ptr<TQual> const a(array.begin() + 1, array.begin(), array.end()); in tests()
96 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
114 test_bounded_ptr<TQual> const a(array.begin() + 2, array.begin(), array.begin() + 3); in tests()
125 test_bounded_ptr<TQual> const a(array.begin(), array.begin() + 2, array.end()); in tests()
126 TQual* b = array.begin(); in tests()
170 TQual* b = array.begin(); in tests()
185 test_bounded_ptr<Derived> const a(array.begin() + 1, array.begin(), array.end() - 1); in tests_convert()
190 test_bounded_ptr<Related> const a(array.begin(), array.begin(), array.end() - 1); in tests_convert()
[all …]
H A Dcompare.equal.raw.cpp56 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
57 TQual* b = array.begin(); in tests()
65 test_bounded_ptr<TQual> const a(array.begin() + 1, array.begin(), array.end()); in tests()
74 test_bounded_ptr<TQual> const a(array.begin(), array.begin(), array.end()); in tests()
92 test_bounded_ptr<TQual> const a(array.begin() + 2, array.begin(), array.begin() + 3); in tests()
103 test_bounded_ptr<TQual> const a(array.begin(), array.begin() + 2, array.end()); in tests()
104 TQual* b = array.begin(); in tests()
163 test_bounded_ptr<Derived> const a(array.begin(), array.begin(), array.end() - 1); in tests_convert()
168 test_bounded_ptr<Related> const a(array.begin(), array.begin(), array.end() - 1); in tests_convert()
175 test_bounded_ptr<Related> const a(array.begin(), array.begin(), array.end() - 1); in tests_convert()
[all …]
H A Dctor.begin_end.cpp29 test_bounded_ptr<QualT> p(array.begin() + 0, array.begin(), array.end()); in tests()
33 test_bounded_ptr<QualT> p(array.begin() + 1, array.begin(), array.end()); in tests()
37 test_bounded_ptr<QualT> p(array.begin() + 2, array.begin(), array.end()); in tests()
41 test_bounded_ptr<QualT> p(array.begin() + 3, array.begin(), array.end()); in tests()
45 test_bounded_ptr<QualT> p(array.begin() + 4, array.begin(), array.end()); in tests()
56 test_bounded_ptr<QualT> p(array.begin() + 1, array.begin() + 3, array.end()); in tests()
57 _assert(p.unsafe_discard_bounds() == array.begin() + 1); in tests()
64 test_bounded_ptr<QualT> p(array.begin() + 4, array.begin(), array.begin() + 3); in tests()
65 _assert(p.unsafe_discard_bounds() == array.begin() + 4); in tests()
95 test_bounded_ptr<Base> p(static_cast<Derived*>(array.begin()),
[all …]
H A Darith.add_assign.cpp43 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
49 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
55 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
61 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
67 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
73 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
85 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
133 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
141 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
167 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
[all …]
H A Darith.subtract_assign.cpp40 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); in tests()
82 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
88 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
94 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
100 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
106 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
112 test_bounded_ptr<QualT> ptr(array.begin(), array.begin(), array.end()); in tests()
130 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
138 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
164 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
[all …]
H A Ddiscard_bounds.cpp39 test_bounded_ptr<QualT> const ptr(array.begin() + 0, array.begin(), array.end()); in tests()
48 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests()
57 test_bounded_ptr<QualT> const ptr(array.begin() + 2, array.begin(), array.end()); in tests()
66 test_bounded_ptr<QualT> const ptr(array.begin() + 4, array.begin(), array.end()); in tests()
76 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
89 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests()
99 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end()); in tests()
109 T* t3 = const_cast<T*>(array.begin() + 3); in tests()
111 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests()
H A Dunsafe_discard_bounds.cpp42 test_bounded_ptr<QualT> const ptr(array.begin() + 0, array.begin(), array.end()); in tests()
51 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests()
60 test_bounded_ptr<QualT> const ptr(array.begin() + 2, array.begin(), array.end()); in tests()
69 test_bounded_ptr<QualT> const ptr(array.begin() + 4, array.begin(), array.end()); in tests()
78 test_bounded_ptr<QualT> const ptr(array.end(), array.begin(), array.end()); in tests()
87 test_bounded_ptr<QualT> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests()
96 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
105 test_bounded_ptr<QualT> ptr(array.begin(), array.begin() + 1, array.end()); in tests()
H A Dderef.cpp47 test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end()); in tests()
60 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
73 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests()
86 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests()
101 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
115 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.end() - 1, array.begin(), array.end() - 2); in tests()
130 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin() + 1, array.end()); in tests()
145 T* t3 = const_cast<T*>(array.begin() + 3); in tests()
147 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests()
H A Darith.add.cpp33 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests()
67 test_bounded_ptr<QualT> const ptr(array.end(), array.begin(), array.end()); in tests()
97 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests()
105 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests()
110 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests()
115 test_bounded_ptr<QualT> const ptr(array.begin() + 3, array.begin(), array.end()); in tests()
H A Dsubscript.cpp47 test_bounded_ptr<QualT> ptr(array.begin() + 0, array.begin(), array.end()); in tests()
68 test_bounded_ptr<QualT> ptr(array.begin() + 1, array.begin(), array.end()); in tests()
89 test_bounded_ptr<QualT> ptr(array.begin() + 2, array.begin(), array.end()); in tests()
110 test_bounded_ptr<QualT> ptr(array.begin() + 4, array.begin(), array.end()); in tests()
131 test_bounded_ptr<QualT> ptr(array.end(), array.begin(), array.end()); 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()
H A Dctor.convert.cpp47 Stored* const ptr = array.begin() + 2; in tests()
50 test_bounded_ptr<From> const from(ptr, array.begin(), array.end()); in tests()
55 test_bounded_ptr<From> const from(ptr, array.begin(), array.end()); in tests()
60 test_bounded_ptr<From> const from(ptr, array.begin(), array.end()); in tests()
65 test_bounded_ptr<From> const from(ptr, array.begin(), array.end()); in tests()
79 libkern::bounded_ptr<From, dummy_policy1> from(ptr, array.begin(), array.end()); in tests()
89 test_bounded_ptr<From> const from(array.begin(), array.begin() + 1, array.end()); in tests()
91 _assert(to.unsafe_discard_bounds() == static_cast<To const*>(array.begin())); in tests()
H A Dassign.convert.cpp46 Stored* const ptr1 = array.begin() + 2; in tests()
47 Stored* const ptr2 = array.begin() + 3; in tests()
50 test_bounded_ptr<From> const from(ptr1, array.begin(), array.end()); in tests()
59 test_bounded_ptr<From> const from(ptr1, array.begin(), array.end()); in tests()
60 test_bounded_ptr<To> to(ptr2, array.begin(), array.end()); in tests()
79 libkern::bounded_ptr<From, dummy_policy1> from(ptr1, array.begin(), array.end()); in tests()
91 test_bounded_ptr<From> const from(array.begin(), array.begin() + 1, array.end()); in tests()
94 _assert(to.unsafe_discard_bounds() == static_cast<To const*>(array.begin())); in tests()
H A Dreinterpret_cast.cpp40 test_bounded_ptr<From> from(array.begin() + 2, array.begin(), array.end()); in tests()
46 test_bounded_ptr<From> from(array.begin() + 2, array.begin(), array.end()); in tests()
60 libkern::bounded_ptr<From, non_default_policy> from(array.begin(), array.begin(), array.end()); in tests()
H A Darith.subtract.cpp31 test_bounded_ptr<QualT> const ptr(array.end(), array.begin(), array.end()); in tests()
65 test_bounded_ptr<QualT> const ptr(array.begin(), array.begin(), array.end()); in tests()
95 test_bounded_ptr<QualT> const ptr(array.begin() + 4, array.begin(), array.end()); in tests()
/xnu-11215/tests/safe_allocation_src/
H A Dbegin_end.cpp29 test_bounded_ptr<T> begin = array.begin(); in tests() local
31 CHECK(begin.discard_bounds() == data); in tests()
37 test_bounded_ptr<T const> begin = array.begin(); in tests() local
39 CHECK(begin.discard_bounds() == data); in tests()
46 test_bounded_ptr<T> begin = array.begin(); in tests() local
48 CHECK(begin.unsafe_discard_bounds() == nullptr); in tests()
50 CHECK(begin == end); in tests()
54 test_bounded_ptr<T const> begin = array.begin(); in tests() local
56 CHECK(begin.unsafe_discard_bounds() == nullptr); in tests()
58 CHECK(begin == end); in tests()
H A Dctor.nullptr.cpp22 CHECK(array.begin() == array.end()); in tests()
28 CHECK(array.begin() == array.end()); in tests()
34 CHECK(array.begin() == array.end()); in tests()
40 CHECK(array.begin() == array.end()); in tests()
H A Dctor.default.cpp22 CHECK(array.begin() == array.end()); in tests()
28 CHECK(array.begin() == array.end()); in tests()
34 CHECK(array.begin() == array.end()); in tests()
/xnu-11215/tests/bounded_array_src/
H A Dbegin_end.cpp24 test_bounded_ptr<T> begin = array.begin(); in tests() local
26 CHECK(begin.discard_bounds() == array.data()); in tests()
31 test_bounded_ptr<T const> begin = array.begin(); in tests() local
33 CHECK(begin.discard_bounds() == array.data()); in tests()
40 test_bounded_ptr<T> begin = array.begin(); in tests() local
42 CHECK(begin.unsafe_discard_bounds() == array.data()); in tests()
47 test_bounded_ptr<T const> begin = array.begin(); in tests() local
49 CHECK(begin.unsafe_discard_bounds() == array.data()); in tests()
/xnu-11215/tests/bounded_array_ref_src/
H A Dbegin_end.cpp24 test_bounded_ptr<T> begin = view.begin(); in tests() local
26 CHECK(begin.discard_bounds() == &array[0]); in tests()
33 test_bounded_ptr<T> begin = view.begin(); in tests() local
35 CHECK(begin.unsafe_discard_bounds() == nullptr); in tests()
H A Dctor.bounded_ptr.cpp24 T* const begin = &array[0]; in tests() local
34 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests()
51 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests()
66 test_bounded_ptr<T> ptr(&array[3], begin, end); in tests()
75 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests()
87 test_bounded_ptr<T> ptr(end, begin, end); in tests()
93 test_bounded_ptr<T> ptr(begin, begin, end); in tests()
/xnu-11215/iokit/DriverKit/
H A Dbounded_array.h62 begin() noexcept in begin() function
67 begin() const noexcept in begin() function
104 return begin()[n];
109 return begin()[n];
/xnu-11215/libkern/libkern/c++/
H A Dbounded_array.h62 begin() noexcept in begin() function
67 begin() const noexcept in begin() function
104 return begin()[n];
109 return begin()[n];

123