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

Method move_destroy_inline

include/concurrencpp/task.h:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 static void move_destroy_inline(void* src, void* dst) noexcept {
59 auto callable_ptr = inline_ptr(src);
60 new (dst) callable_type(std::move(*callable_ptr));
61 callable_ptr->~callable_type();
62 }
63
64 static void move_destroy_allocated(void* src, void* dst) noexcept {
65 auto callable_ptr = std::exchange(allocated_ref_ptr(src), nullptr);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected