Skip to content

dakku::MemoryArena

memory arena (unsynchronized)

#include <memory.h>

Public Functions

Name
MemoryArena() =default
MemoryArena(std::pmr::memory_resource * buffer)
template <typename T ,typename... Args>
T *
allocObject(Args &&... args)
allocate and construct a object from the arena
void release()
release the memory arena

Public Functions Documentation

function MemoryArena

explicit MemoryArena() =default

function MemoryArena

inline explicit MemoryArena(
    std::pmr::memory_resource * buffer
)

function allocObject

template <typename T ,
typename... Args>
inline T * allocObject(
    Args &&... args
)

allocate and construct a object from the arena

Parameters:

  • args arguments

Template Parameters:

  • T object type
  • Args argument types

Return: T* object instance

function release

inline void release()

release the memory arena


Updated on 2022-04-30 at 15:46:11 +0000