RADLib
RADical C++ application framework
RADData::RADAlignedAllocator< T, Alignment > Class Template Reference

Standard-compatible aligned allocator. More...

#include <RADDataStructures.h>

Classes

struct  rebind
 Rebinds the allocator to another value type. More...
 

Public Types

using value_type = T
 

Public Member Functions

T * allocate (size_t n)
 Allocates n aligned objects. More...
 
void deallocate (T *ptr, size_t)
 Frees aligned storage. More...
 

Detailed Description

template<typename T, size_t Alignment = alignof(T)>
class RADData::RADAlignedAllocator< T, Alignment >

Standard-compatible aligned allocator.

Member Typedef Documentation

◆ value_type

template<typename T , size_t Alignment = alignof(T)>
using RADData::RADAlignedAllocator< T, Alignment >::value_type = T

Member Function Documentation

◆ allocate()

template<typename T , size_t Alignment = alignof(T)>
T* RADData::RADAlignedAllocator< T, Alignment >::allocate ( size_t  n)
inline

Allocates n aligned objects.

◆ deallocate()

template<typename T , size_t Alignment = alignof(T)>
void RADData::RADAlignedAllocator< T, Alignment >::deallocate ( T *  ptr,
size_t   
)
inline

Frees aligned storage.


The documentation for this class was generated from the following file: