vSMC
vSMC: 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)
 
static void * aligned_malloc (std::size_t n, std::size_t alignment)
 

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 114 of file aligned_memory.hpp.

Member Function Documentation

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

Definition at line 138 of file aligned_memory.hpp.

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

Definition at line 117 of file aligned_memory.hpp.