Template Class StackArena¶
Defined in File arena.hpp
Class Documentation¶
-
template<size_t
Size
>
classripple
::
StackArena
¶ Defines a stack-based memory arena of a specific size.
- Template Parameters
Size
: The size of the stack for the arena.
Public Functions
-
StackArena
(size_t size = 0) noexcept¶ Constructor which takes the size of the arena.
This is provided so that arenas have the same interface.
- Parameters
size
: The size of the arena.
-
ripple_nodiscard auto begin () const noexcept -> ConstPtr
Gets a pointer to the beginning of the arena.
- Return
A pointer to the beginning of the arena.
-
ripple_nodiscard auto end () const noexcept -> ConstPtr
Gets a pointer to the end of the arena.
- Return
A pointer to the end of the arena.
-
constexpr ripple_nodiscard auto size () const noexcept -> size_t
Gets the size of the arena.
- Return
The size of the arena.