MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / move_destroy_allocated

Method move_destroy_allocated

include/concurrencpp/task.h:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 static void move_destroy_allocated(void* src, void* dst) noexcept {
65 auto callable_ptr = std::exchange(allocated_ref_ptr(src), nullptr);
66 new (dst) callable_type*(callable_ptr);
67 }
68
69 static void execute_destroy_inline(void* target) {
70 auto callable_ptr = inline_ptr(target);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected