vSMC  v3.0.0
Scalable Monte Carlo
Static Public Member Functions | List of all members
vsmc::AlignedMemorySTD Class Reference

Aligned memory using std::malloc and std::free More...

#include <vsmc/utility/aligned_memory.hpp>

Static Public Member Functions

static void aligned_free (void *ptr) noexcept
 
static void * aligned_malloc (std::size_t n, std::size_t alignment) noexcept
 

Detailed Description

Aligned memory using std::malloc and std::free

Memory allocated through this class is aligned but some bytes might be wasted in each allocation.

Definition at line 172 of file aligned_memory.hpp.

Member Function Documentation

static void vsmc::AlignedMemorySTD::aligned_free ( void *  ptr)
inlinestaticnoexcept

Definition at line 195 of file aligned_memory.hpp.

static void* vsmc::AlignedMemorySTD::aligned_malloc ( std::size_t  n,
std::size_t  alignment 
)
inlinestaticnoexcept

Definition at line 175 of file aligned_memory.hpp.