MCPcopy Create free account
hub / github.com/ConorWilliams/libfork / empty

Method empty

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

* @brief Test if the stack is empty (has no allocations). */

Source from the content-addressed store, hash-verified

256 * @brief Test if the stack is empty (has no allocations).
257 */
258 [[nodiscard]] auto empty() -> bool {
259 LF_ASSERT(m_fib && m_fib->is_top());
260 return m_fib->empty() && m_fib->m_prev == nullptr;
261 }
262
263 /**
264 * @brief Release the underlying storage of the current stack and re-initialize this one.

Callers 6

is_topMethod · 0.45
deallocateMethod · 0.45
await_suspendMethod · 0.45
final_await_suspendFunction · 0.45
await_suspendMethod · 0.45

Calls 1

is_topMethod · 0.45

Tested by

no test coverage detected