MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / __do_complete

Method __do_complete

include/stdexec/__detail/__spawn.hpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 __assoc_t __assoc_;
109
110 static void __do_complete(__spawn_state_base* __base) noexcept
111 {
112 auto* __self = static_cast<__spawn_state*>(__base);
113
114 [[maybe_unused]]
115 auto __assoc = std::move(__self->__assoc_);
116
117 {
118 using __traits = std::allocator_traits<_Alloc>::template rebind_traits<__spawn_state>;
119 typename __traits::allocator_type __alloc(std::move(__self->__alloc_));
120 __traits::destroy(__alloc, __self);
121 __traits::deallocate(__alloc, __self, 1);
122 }
123 }
124 };
125
126 struct spawn_t

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected