Shortcuts

Template Class StackArena

Class Documentation

template<size_t Size>
class ripple::StackArena

Defines a stack-based memory arena of a specific size.

Template Parameters
  • Size: The size of the stack for the arena.

Public Types

using Ptr = void*

Pointer type.

using ConstPtr = const void*

Const pointer type.

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.

Public Static Attributes

constexpr bool contexpr_size = true

Returns that the allocator has a constexpr size.

constexpr bool valid_on_device = true

Returns that the arena is valid on the device.

constexpr bool valid_on_host = true

Returns that the arena is valid on the host.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples