* @brief Test if the stack is empty (has no allocations). */
| 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. |
no test coverage detected