| /xnu-11215/tests/bounded_array_src/ |
| H A D | operator.subscript.cpp | 12 struct T { int i; }; struct 14 operator==(T const& a, T const& b) in operator ==() 19 template <typename T> 24 test_bounded_array<T, 5> array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 25 T& a0 = array[0]; in tests() 28 T& a1 = array[1]; in tests() 30 T& a2 = array[2]; in tests() 32 T& a3 = array[3]; in tests() 34 T& a4 = array[4]; in tests() 39 test_bounded_array<T, 5> const array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() [all …]
|
| H A D | data.cpp | 12 struct T { int i; }; struct 14 operator==(T const& a, T const& b) in operator ==() 19 template <typename T> 24 test_bounded_array<T, 5> array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 25 T* data = array.data(); in tests() 27 CHECK(data[0] == T{0}); in tests() 28 CHECK(data[1] == T{1}); in tests() 29 CHECK(data[2] == T{2}); in tests() 30 CHECK(data[3] == T{3}); in tests() 34 test_bounded_array<T, 5> const array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() [all …]
|
| H A D | ctor.aggregate_init.cpp | 11 struct T { struct 12 T() : i(4) in T() argument 15 T(int k) : i(k) in T() function 20 operator==(T const& a, T const& b) in operator ==() argument 26 template <typename T> 31 test_bounded_array<T, 5> array = {T(1), T(2), T(3), T(4), T(5)}; in tests() 33 CHECK(array[0] == T(1)); in tests() 34 CHECK(array[1] == T(2)); in tests() 35 CHECK(array[2] == T(3)); in tests() 41 test_bounded_array<T, 5> array{T(1), T(2), T(3), T(4), T(5)}; in tests() [all …]
|
| H A D | begin_end.cpp | 15 struct T { int i; }; argument 17 template <typename T> 23 test_bounded_array<T, 5> array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 24 test_bounded_ptr<T> begin = array.begin(); in tests() 25 test_bounded_ptr<T> end = array.end(); in tests() 30 test_bounded_array<T, 5> const array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 39 test_bounded_array<T, 0> array = {}; in tests() 40 test_bounded_ptr<T> begin = array.begin(); in tests() 41 test_bounded_ptr<T> end = array.end(); in tests() 55 using A = test_bounded_array<T, 10>; in tests() [all …]
|
| H A D | ctor.default.cpp | 11 struct T { struct 12 T() : i(4) in T() function 17 operator==(T const& a, T const& b) in operator ==() argument 23 template <typename T> 28 test_bounded_array<T, 10> array; in tests() 32 CHECK(*it == T()); in tests() 40 CHECK(*it == T()); in tests() 48 CHECK(*it == T()); in tests() 52 test_bounded_array<T, 10> array = test_bounded_array<T, 10>(); in tests() 56 CHECK(*it == T()); in tests() [all …]
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSValueObject.h | 233 return sizeof(T); in getLength() 411 OSPtr<OSValueObject<T> > OSValueObjectWithValue(const T& value); 436 OSValueObject<T>::withValue(const T& value) in withValue() 468 data->~T(); in init() 494 OSValueObject<T>::setValue(const T& value) in setValue() 507 const T * 514 T * 521 const T & 529 T & 545 OSValueObject<T>::isEqualTo(const T& value) const in isEqualTo() [all …]
|
| H A D | bounded_ptr.h | 50 template <typename T> T && declval() noexcept; 53 template <typename T> struct enable_if<true, T> { using type = T; }; 70 template <typename T, typename U> using copy_cv_t = typename copy_cv<T, U>::type; 88 template <typename T> constexpr size_t sizeof_v = sizeof(T); 180 bounded_ptr(T* pointer, T const* begin, T const* end) 272 OS_ALWAYS_INLINE T* 300 OS_ALWAYS_INLINE T* 324 OS_ALWAYS_INLINE T* 479 OS_ALWAYS_INLINE T* 682 OS_ALWAYS_INLINE T* [all …]
|
| H A D | safe_allocation.h | 61 template <typename T> struct enable_if<true, T> { using type = T; }; 65 template <typename T> struct remove_const<T const> { using type = T; }; 70 generic_swap(T& a, T& b) 72 T tmp = a; 79 destroy(T* first, T* last) 88 destroy(T*, T*) 95 uninitialized_value_construct(T* first, T* last) 231 static_assert(__is_scalar(T) || __is_aggregate(T), 401 T* 406 T const* [all …]
|
| H A D | intrusive_shared_ptr.h | 37 template <typename T> T && declval() noexcept; 45 template <typename T> constexpr bool is_empty_v = __is_empty(T); 47 template <typename T> struct remove_reference { using type = T; }; 48 template <typename T> struct remove_reference<T&> { using type = T; }; 49 template <typename T> struct remove_reference<T &&> { using type = T; }; 53 template <typename T> struct enable_if<true, T> { using type = T; }; 58 template <typename T> 59 constexpr T && forward(remove_reference_t<T>&t) noexcept { 64 constexpr T && forward(remove_reference_t<T>&& t) noexcept { 71 constexpr remove_reference_t<T>&& move(T && t) noexcept { [all …]
|
| /xnu-11215/tests/bounded_array_ref_src/ |
| H A D | slice.cpp | 14 struct T { int i; }; struct 16 template <typename T> 19 template <typename T> 23 T array[5] = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 27 test_bounded_array_ref<T> view(array); in tests() 32 test_bounded_array_ref<T> view(array); in tests() 38 test_bounded_array_ref<T> view(array); in tests() 45 test_bounded_array_ref<T> view(array); in tests() 212 test_bounded_array_ref<T> view; in tests() 225 tests<T>(); [all …]
|
| H A D | ctor.bounded_ptr.cpp | 12 struct T { int i; }; argument 14 operator==(T const& a, T const& b) in operator ==() 19 template <typename T> 23 T array[5] = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 25 T* const end = &array[5]; in tests() 38 CHECK(view[0] == T{0}); in tests() 39 CHECK(view[1] == T{1}); in tests() 40 CHECK(view[2] == T{2}); in tests() 41 CHECK(view[3] == T{3}); in tests() 102 tests<T>(); [all …]
|
| H A D | ctor.raw_ptr.cpp | 12 struct T { int i; }; struct 14 operator==(T const& a, T const& b) in operator ==() 19 template <typename T> 23 T array[5] = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 32 T* ptr = &array[0]; in tests() 49 T* ptr = &array[0]; in tests() 64 T* ptr = &array[3]; in tests() 73 T* ptr = &array[0]; in tests() 79 T* ptr = nullptr; in tests() 119 tests<T>(); [all …]
|
| H A D | ctor.begin_end.cpp | 11 struct T { int i; }; argument 13 operator==(T const& a, T const& b) in operator ==() 18 template <typename T> 22 T array[5] = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 29 T* first = &array[0]; in tests() 30 T* last = &array[5]; in tests() 46 T* first = &array[0]; in tests() 47 T* last = &array[1]; in tests() 60 T* last = &array[0]; in tests() 78 tests<T>(); [all …]
|
| H A D | ctor.C_array.cpp | 12 struct T { int i; }; struct 14 operator==(T const& a, T const& b) in operator ==() 19 template <typename T> 24 T array[5] = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 28 CHECK(view[0] == T{0}); in tests() 29 CHECK(view[1] == T{1}); in tests() 30 CHECK(view[2] == T{2}); in tests() 36 T array[1] = {T{11}}; in tests() 45 T array[1] = {T{11}}; in tests() 51 T array[1] = {T{11}}; in tests() [all …]
|
| H A D | ctor.bounded_array.cpp | 12 struct T { int i; }; struct 14 operator==(T const& a, T const& b) in operator ==() 19 template <typename T> 24 test_bounded_array<T, 5> array = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 28 CHECK(view[0] == T{0}); in tests() 29 CHECK(view[1] == T{1}); in tests() 30 CHECK(view[2] == T{2}); in tests() 36 test_bounded_array<T, 1> array = {T{11}}; in tests() 52 test_bounded_array<T, 1> array = {T{11}}; in tests() 58 test_bounded_array<T, 1> array = {T{11}}; in tests() [all …]
|
| H A D | operator.subscript.cpp | 11 struct T { int i; }; argument 13 operator==(T const& a, T const& b) in operator ==() 18 template <typename T> 23 T array[5] = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 24 test_bounded_array_ref<T> view(array); in tests() 25 CHECK(view[0] == T{0}); in tests() 26 CHECK(view[1] == T{1}); in tests() 27 CHECK(view[2] == T{2}); in tests() 28 CHECK(view[3] == T{3}); in tests() 29 CHECK(view[4] == T{4}); in tests() [all …]
|
| H A D | data.cpp | 12 struct T { int i; }; struct 14 template <typename T> 18 T array[5] = {T{0}, T{1}, T{2}, T{3}, T{4}}; in tests() 22 T* data = view.data(); in tests() 26 test_bounded_array_ref<T> const view(&array[0], 1); in tests() 27 T* data = view.data(); in tests() 32 test_bounded_array_ref<T> const view(&array[1], 2); in tests() 33 T* data = view.data(); in tests() 38 T* data = view.data(); in tests() 44 tests<T>(); [all …]
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | bounded_ptr.h | 50 template <typename T> T && declval() noexcept; 53 template <typename T> struct enable_if<true, T> { using type = T; }; 70 template <typename T, typename U> using copy_cv_t = typename copy_cv<T, U>::type; 88 template <typename T> constexpr size_t sizeof_v = sizeof(T); 180 bounded_ptr(T* pointer, T const* begin, T const* end) 272 OS_ALWAYS_INLINE T* 300 OS_ALWAYS_INLINE T* 324 OS_ALWAYS_INLINE T* 479 OS_ALWAYS_INLINE T* 682 OS_ALWAYS_INLINE T* [all …]
|
| H A D | safe_allocation.h | 61 template <typename T> struct enable_if<true, T> { using type = T; }; 65 template <typename T> struct remove_const<T const> { using type = T; }; 70 generic_swap(T& a, T& b) 72 T tmp = a; 79 destroy(T* first, T* last) 88 destroy(T*, T*) 95 uninitialized_value_construct(T* first, T* last) 231 static_assert(__is_scalar(T) || __is_aggregate(T), 401 T* 406 T const* [all …]
|
| /xnu-11215/bsd/dev/dtrace/scripts/ |
| H A D | mptcp.d | 94 flags = T->mpt_flags; 103 rtseq = T->mpt_rtseq; 114 mptcb = T; 133 state = T ? 137 flags = T->mpp_flags; 138 mppcb = T; 158 mptses = T; 213 flags = T->mpts_flags; 214 evctl = T->mpts_evctl; 215 connid = T->mpts_connid; [all …]
|
| H A D | tcp.d | 140 tcp_hdr = T; 173 tcps_state = T ? 186 t_flags = T->t_flags; 187 rcv_nxt = T->rcv_nxt; 188 rcv_adv = T->rcv_adv; 189 rcv_wnd = T->rcv_wnd; 190 snd_wnd = T->snd_wnd; 193 snd_una = T->snd_una; 194 snd_nxt = T->snd_nxt; 195 snd_max = T->snd_max; [all …]
|
| H A D | socket.d | 38 cc = T->sb_cc; 39 hiwat = T->sb_hiwat; 40 lowat = T->sb_lowat; 41 mbcnt = T->sb_mbcnt; 42 mbmax = T->sb_mbmax; 43 flags = T->sb_flags; 44 sockbuf = T; 63 zone = T->so_zone; 64 type = T->so_type; 68 qlen = T->so_qlen; [all …]
|
| /xnu-11215/libkern/os/ |
| H A D | cpp_util.h | 80 template<class T> struct is_same<T, T> { static constexpr bool value = true; }; 95 T* 96 move(T* first, T* last, T* d_first) 105 constexpr T && forward(os::remove_reference_t<T>&t) noexcept { 120 T* 121 move_backward(T* first, T* last, T* d_last) 130 T* 131 uninitialized_move(T* first, T* last, T* d_first) 141 destroy(T* first, T* last) 144 first->~T(); [all …]
|
| H A D | atomic.h | 94 template <class T> using remove_volatile_t = typename std::remove_volatile<T>::type; 96 template <class T> 98 cast_to_atomic_pointer(T *v) in cast_to_atomic_pointer() 103 template <class T> 110 template <class T> 117 template <class T> 118 inline remove_volatile_t<T> * 124 template <class T> 125 inline remove_volatile_t<T> * 131 template <class T> [all …]
|
| /xnu-11215/tests/bounded_ptr_src/ |
| H A D | ctor.nullptr.cpp | 13 struct T { }; struct 15 template <typename T> 33 test_bounded_ptr<T> p = static_cast<test_bounded_ptr<T> >(nullptr); in tests() 57 test_bounded_ptr<T> p = static_cast<test_bounded_ptr<T> >(NULL); in tests() 73 test_bounded_ptr<T> p{0}; in tests() 77 test_bounded_ptr<T> p(0); in tests() 81 test_bounded_ptr<T> p = static_cast<test_bounded_ptr<T> >(0); in tests() 93 tests<T>(); 94 tests<T const>(); 95 tests<T volatile>(); [all …]
|