MCKL
Monte Carlo Kernel Library
Static Public Member Functions | List of all members
mckl::MemoryJEM< Alignment > Class Template Reference

Memory allocation using jemalloc. More...

#include <mckl/core/memory.hpp>

Static Public Member Functions

static constexpr std::size_t alignment ()
 
static void * allocate (std::size_t n, const void *=nullptr) noexcept
 
static void deallocate (void *ptr, std::size_t=0) noexcept
 

Detailed Description

template<std::size_t Alignment>
class mckl::MemoryJEM< Alignment >

Memory allocation using jemalloc.

Template Parameters
AlignmentThe alignment of the allocated memory

Definition at line 232 of file memory.hpp.

Member Function Documentation

◆ alignment()

template<std::size_t Alignment>
static constexpr std::size_t mckl::MemoryJEM< Alignment >::alignment ( )
inlinestatic

Definition at line 242 of file memory.hpp.

◆ allocate()

template<std::size_t Alignment>
static void* mckl::MemoryJEM< Alignment >::allocate ( std::size_t  n,
const void *  = nullptr 
)
inlinestaticnoexcept

Definition at line 244 of file memory.hpp.

◆ deallocate()

template<std::size_t Alignment>
static void mckl::MemoryJEM< Alignment >::deallocate ( void *  ptr,
std::size_t  = 0 
)
inlinestaticnoexcept

Definition at line 251 of file memory.hpp.