MCPcopy Create free account
hub / github.com/ConorWilliams/libfork / ~stack_allocated

Method ~stack_allocated

include/libfork/core/co_alloc.hpp:95–100  ·  view source on GitHub ↗

* @brief Destroys objects and releases the memory. */

Source from the content-addressed store, hash-verified

93 * @brief Destroys objects and releases the memory.
94 */
95 ~stack_allocated() noexcept {
96 std::ranges::destroy(m_span);
97 auto *stack = impl::tls::stack();
98 stack->deallocate(m_span.data());
99 m_frame->reset_stacklet(stack->top());
100 }
101
102 private:
103 impl::frame *m_frame;

Callers

nothing calls this directly

Calls 5

reset_stackletMethod · 0.80
stackFunction · 0.50
deallocateMethod · 0.45
dataMethod · 0.45
topMethod · 0.45

Tested by

no test coverage detected