RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed::AlignedAllocator< T, alignment > Class Template Reference

#include "adt/AlignedAllocator.h"

Inheritance diagram for rawspeed::AlignedAllocator< T, alignment >:
[legend]

Classes

struct  rebind

Public Types

using value_type = T
using propagate_on_container_copy_assignment = std::true_type
using propagate_on_container_move_assignment = std::true_type
using propagate_on_container_swap = std::true_type

Public Member Functions

Tallocate (std::size_t numElts) const
void deallocate (T *p, std::size_t n) const noexcept

Private Types

using self = AlignedAllocator<T, alignment>
using allocator_traits = std::allocator_traits<self>

Detailed Description

template<class T, int alignment>
class rawspeed::AlignedAllocator< T, alignment >

Definition at line 36 of file AlignedAllocator.h.

Member Typedef Documentation

◆ allocator_traits

template<class T, int alignment>
using rawspeed::AlignedAllocator< T, alignment >::allocator_traits = std::allocator_traits<self>
private

Definition at line 38 of file AlignedAllocator.h.

◆ propagate_on_container_copy_assignment

template<class T, int alignment>
using rawspeed::AlignedAllocator< T, alignment >::propagate_on_container_copy_assignment = std::true_type

Definition at line 81 of file AlignedAllocator.h.

◆ propagate_on_container_move_assignment

template<class T, int alignment>
using rawspeed::AlignedAllocator< T, alignment >::propagate_on_container_move_assignment = std::true_type

Definition at line 82 of file AlignedAllocator.h.

◆ propagate_on_container_swap

template<class T, int alignment>
using rawspeed::AlignedAllocator< T, alignment >::propagate_on_container_swap = std::true_type

Definition at line 83 of file AlignedAllocator.h.

◆ self

template<class T, int alignment>
using rawspeed::AlignedAllocator< T, alignment >::self = AlignedAllocator<T, alignment>
private

Definition at line 37 of file AlignedAllocator.h.

◆ value_type

template<class T, int alignment>
using rawspeed::AlignedAllocator< T, alignment >::value_type = T

Definition at line 41 of file AlignedAllocator.h.

Member Function Documentation

◆ allocate()

template<class T, int alignment>
T * rawspeed::AlignedAllocator< T, alignment >::allocate ( std::size_t numElts) const
inlinenodiscard

Definition at line 47 of file AlignedAllocator.h.

◆ deallocate()

template<class T, int alignment>
void rawspeed::AlignedAllocator< T, alignment >::deallocate ( T * p,
std::size_t n ) const
inlinenoexcept

Definition at line 74 of file AlignedAllocator.h.


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