MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / operator delete

Method operator delete

include/exec/start_detached.hpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 static constexpr void operator delete(__operation* __self, std::destroying_delete_t) noexcept
127 {
128 auto __alloc = STDEXEC::__with_default(STDEXEC::get_allocator,
129 std::allocator<__operation>())(__self->__env_);
130 using __alloc_t = decltype(__alloc);
131 using __op_alloc_t = std::allocator_traits<__alloc_t>::template rebind_alloc<__operation>;
132 __op_alloc_t __op_alloc{__alloc};
133 std::allocator_traits<__op_alloc_t>::destroy(__op_alloc, __self);
134 std::allocator_traits<__op_alloc_t>::deallocate(__op_alloc, __self, 1);
135 }
136
137 STDEXEC_IMMOVABLE_NO_UNIQUE_ADDRESS
138 STDEXEC::submit_result<_Sender, __receiver<_Env>> __op_data_;

Callers

nothing calls this directly

Calls 1

__with_defaultClass · 0.85

Tested by

no test coverage detected