Constructors

Synopses

Declared in <support/lockedpool.h>

Deleted copy constructor; an Arena cannot be copied.

Arena(Arena const& other) = delete;

Construct an arena over a memory region.

Arena(
    void* base,
    size_t size,
    size_t alignment);

Parameters

Name

Description

other

The arena that would have been copied.

base

Base address of the region managed by the arena.

size

Size in bytes of the region.

alignment

Minimum alignment for chunks carved from the region.

Created with MrDocs