VCTR
Loading...
Searching...
No Matches
vctr::AlignedAllocator< ElementType, alignmentInBytes > Class Template Reference

Returns aligned pointers when allocations are requested. More...

Classes

struct  rebind
 

Public Types

using value_type = ElementType
 
using size_type = std::size_t
 

Public Member Functions

template<class OtherElementType >
 AlignedAllocator (const AlignedAllocator< OtherElementType, alignmentInBytes > &) noexcept
 
ElementType * allocate (size_t nElementsToAllocate)
 
void deallocate (ElementType *allocatedPointer, size_t nBytesAllocated)
 

Detailed Description

template<typename ElementType, size_t alignmentInBytes>
requires (alignmentInBytes >= alignof (ElementType) && is::powerOfTwoInt<alignmentInBytes>)
class vctr::AlignedAllocator< ElementType, alignmentInBytes >

Returns aligned pointers when allocations are requested.


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