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

Memory allocation using the standard library. 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::MemorySTD< Alignment >

Memory allocation using the standard library.

Template Parameters
AlignmentThe alignment of the allocated memory

Definition at line 136 of file memory.hpp.

Member Function Documentation

◆ alignment()

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

Definition at line 146 of file memory.hpp.

◆ allocate()

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

Definition at line 148 of file memory.hpp.

◆ deallocate()

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

Definition at line 170 of file memory.hpp.