← API Reference Class

template<std::size_t N> asge::mem::StackBuffer

Stack-allocated arena backed by an inline byte array of size N.

#include <LinearAllocator.hpp>

Inherits from asge::mem::LinearAllocator.

Inheritance

classDiagram
    class N2["asge::mem::LinearAllocator"]
    class N1["asge::mem::StackBuffer"]
    N2 <|-- N1
    click N2 href "classasge_1_1mem_1_1LinearAllocator.html"
    click N1 href "classasge_1_1mem_1_1StackBuffer.html"

Collaboration

classDiagram
    class N2["asge::mem::LinearAllocator"]
    class N1["asge::mem::StackBuffer"]
    N2 <|-- N1
    click N2 href "classasge_1_1mem_1_1LinearAllocator.html"
    click N1 href "classasge_1_1mem_1_1StackBuffer.html"

The buffer lives on the stack (or as a member) — no heap allocation occurs. Inherits all LinearAllocator operations. Useful for short-lived, bounded allocations where heap overhead or latency is unacceptable.

Template Parameters
N

Size of the backing buffer in bytes.

Private Attributes

#std::byte m_Buffer[N]private

Public Member Functions

#StackBuffer()