Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
gts::AlignedAllocator< ALIGNMENT > Class Template Reference

An aligned allocator for GTS containers. More...

#include <AlignedAllocator.h>

Public Member Functions

 AlignedAllocator (const AlignedAllocator &)=default
 
template<typename T >
size_t max_size () const
 
template<typename T , typename... TArgs>
void construct (T *ptr, TArgs &&... args)
 
template<typename T >
void destroy (T *const ptr)
 
template<typename T >
T * allocate (const size_t n, size_t align=ALIGNMENT) const
 
template<typename T >
void deallocate (T *const ptr, size_t) const
 
template<typename T , typename... TArgs>
T * new_object (TArgs &&... args)
 
template<typename T >
void delete_object (T *ptr)
 
template<typename T >
T * vector_new_object (size_t count)
 
template<typename T >
void vector_delete_object (T *ptr, size_t count)
 

Detailed Description

template<size_t ALIGNMENT>
class gts::AlignedAllocator< ALIGNMENT >

An aligned allocator for GTS containers.