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

Method capacity

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

* @brief Capacity of the current stacklet's stack. */

Source from the content-addressed store, hash-verified

95 * @brief Capacity of the current stacklet's stack.
96 */
97 [[nodiscard]] auto capacity() const noexcept -> std::size_t {
98 LF_ASSERT(m_hi - m_lo >= 0);
99 return static_cast<std::size_t>(m_hi - m_lo);
100 }
101 /**
102 * @brief Unused space on the current stacklet's stack.
103 */

Callers 2

allocateMethod · 0.45
deallocateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected