Home
last modified time | relevance | path

Searched refs:bounded_ptr (Results 1 – 25 of 31) sorted by relevance

12

/xnu-11417.121.6/libkern/libkern/c++/
H A Dbounded_ptr.h145 struct __attribute__((trivial_abi)) bounded_ptr {
157 bounded_ptr(detail::nullptr_t)
164 bounded_ptr()
165 : bounded_ptr(nullptr)
180 bounded_ptr(T* pointer, T const* begin, T const* end)
216 bounded_ptr(bounded_ptr<U, Policy> const & other)
230 OS_ALWAYS_INLINE bounded_ptr&
231 operator=(bounded_ptr<U, Policy> const& other)
246 OS_ALWAYS_INLINE bounded_ptr&
249 *this = bounded_ptr();
[all …]
H A Dbounded_array.h58 using iterator = bounded_ptr<T, TrappingPolicy>;
59 using const_iterator = bounded_ptr<T const, TrappingPolicy>;
H A Dbounded_ptr_fwd.h36 struct __attribute__((trivial_abi)) bounded_ptr;
H A DOSBoundedPtrFwd.h47 using OSBoundedPtr = libkern::bounded_ptr<T, os_detail::panic_trapping_policy>;
H A Dbounded_array_ref.h80 explicit constexpr bounded_array_ref(bounded_ptr<T, TrappingPolicy> data, size_t n) in bounded_array_ref()
165 using iterator = bounded_ptr<T, TrappingPolicy>;
H A DMakefile41 bounded_ptr.h \
/xnu-11417.121.6/iokit/DriverKit/
H A Dbounded_ptr.h145 struct __attribute__((trivial_abi)) bounded_ptr {
157 bounded_ptr(detail::nullptr_t)
164 bounded_ptr()
165 : bounded_ptr(nullptr)
180 bounded_ptr(T* pointer, T const* begin, T const* end)
216 bounded_ptr(bounded_ptr<U, Policy> const & other)
230 OS_ALWAYS_INLINE bounded_ptr&
231 operator=(bounded_ptr<U, Policy> const& other)
246 OS_ALWAYS_INLINE bounded_ptr&
249 *this = bounded_ptr();
[all …]
H A Dbounded_array.h58 using iterator = bounded_ptr<T, TrappingPolicy>;
59 using const_iterator = bounded_ptr<T const, TrappingPolicy>;
H A Dbounded_ptr_fwd.h36 struct __attribute__((trivial_abi)) bounded_ptr;
H A DOSBoundedPtrFwd.h47 using OSBoundedPtr = libkern::bounded_ptr<T, os_detail::panic_trapping_policy>;
H A Dbounded_array_ref.h80 explicit constexpr bounded_array_ref(bounded_ptr<T, TrappingPolicy> data, size_t n) in bounded_array_ref()
165 using iterator = bounded_ptr<T, TrappingPolicy>;
/xnu-11417.121.6/tests/bounded_ptr_src/
H A Ddiscard_bounds.cpp76 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()
111 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests()
H A Dderef.cpp101 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()
147 …libkern::bounded_ptr<QualT, tracking_policy> ptr(reinterpret_cast<QualT*>(just_off), array.begin()… in tests()
H A Darith.add_assign.cpp133 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()
181 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
H A Darith.subtract_assign.cpp130 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()
178 libkern::bounded_ptr<QualT, tracking_policy> ptr(array.begin(), array.begin(), array.end()); in tests()
H A Dassign.convert.cpp79 libkern::bounded_ptr<From, dummy_policy1> from(ptr1, array.begin(), array.end()); in tests()
80 libkern::bounded_ptr<To, dummy_policy2> to; in tests()
81 libkern::bounded_ptr<To, dummy_policy2>& ref = (to = from); in tests()
H A Dreinterpret_cast.cpp60 libkern::bounded_ptr<From, non_default_policy> from(array.begin(), array.begin(), array.end()); in tests()
61 libkern::bounded_ptr<To, non_default_policy> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
H A Dsubscript.cpp154 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 Dtest_utils.h17 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>;
H A Dctor.convert.cpp79 libkern::bounded_ptr<From, dummy_policy1> from(ptr, array.begin(), array.end()); in tests()
80 libkern::bounded_ptr<To, dummy_policy2> to = from; // conversion (implicit) in tests()
H A Dcompare.equal.cpp124 libkern::bounded_ptr<TQual, dummy_policy1> const a(array.begin(), array.begin(), array.end()); in tests()
125 libkern::bounded_ptr<TQual, dummy_policy2> const b(array.begin(), array.begin(), array.end()); in tests()
H A Dcompare.order.cpp140 libkern::bounded_ptr<TQual, dummy_policy1> const a(array.begin(), array.begin(), array.end()); in tests()
141 libkern::bounded_ptr<TQual, dummy_policy2> const b(array.begin(), array.begin(), array.end()); in tests()
H A Dcompare.equal.nullptr.cpp55 libkern::bounded_ptr<QualT, non_default_policy> const ptr = nullptr; in tests()
/xnu-11417.121.6/tests/bounded_array_src/
H A Dtest_policy.h22 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>;
/xnu-11417.121.6/tests/bounded_array_ref_src/
H A Dtest_policy.h48 using test_bounded_ptr = libkern::bounded_ptr<T, test_policy>;

12