Classes | Functions
allocators Namespace Reference

Classes

class  AlignedAllocator
 An stl-compatible aligned allocator. More...
 
class  AlignedAllocator< void, align >
 

Functions

void alignedFree (void *aligned)
 Free memory allocated through alignedMalloc() More...
 
void * alignedMalloc (size_t size, size_t alignment)
 Allocate memory aligned at on a value. Memory allocated through alignedMalloc() must be freed through alignedFree() More...
 

Function Documentation

◆ alignedFree()

void allocators::alignedFree ( void *  aligned)
inline

Free memory allocated through alignedMalloc()

Parameters
alignedThe memory to free

Definition at line 106 of file aligned.h.

◆ alignedMalloc()

void* allocators::alignedMalloc ( size_t  size,
size_t  alignment 
)
inline

Allocate memory aligned at on a value. Memory allocated through alignedMalloc() must be freed through alignedFree()

Parameters
sizeThe amount of memory to allocate
alignmentThe value to align on

Definition at line 85 of file aligned.h.



allocators
Author(s): Josh Faust
autogenerated on Wed Mar 2 2022 00:54:11