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

Method ~stack

include/libfork/core/impl/stack.hpp:248–253  ·  view source on GitHub ↗

* @brief Destroy the stack object. */

Source from the content-addressed store, hash-verified

246 * @brief Destroy the stack object.
247 */
248 ~stack() noexcept {
249 LF_ASSERT(m_fib);
250 LF_ASSERT(!m_fib->m_prev); // Should only be destructed at the root.
251 m_fib->set_next(nullptr); // Free a cached stacklet.
252 std::free(m_fib); // NOLINT
253 }
254
255 /**
256 * @brief Test if the stack is empty (has no allocations).

Callers

nothing calls this directly

Calls 1

set_nextMethod · 0.45

Tested by

no test coverage detected