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

Memory allocation using Intel TBB. 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::MemoryTBB< Alignment >

Memory allocation using Intel TBB.

Template Parameters
AlignmentThe alignment of the allocated memory

Definition at line 268 of file memory.hpp.

Member Function Documentation

◆ alignment()

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

Definition at line 278 of file memory.hpp.

◆ allocate()

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

Definition at line 280 of file memory.hpp.

◆ deallocate()

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

Definition at line 287 of file memory.hpp.