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

#include "adt/DefaultInitAllocatorAdaptor.h"

Inheritance diagram for rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >:
[legend]
Collaboration diagram for rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >:
[legend]

Classes

struct  rebind

Public Types

using allocator_traits = std::allocator_traits<ActualAllocator>
using value_type = typename allocator_traits::value_type
using allocator_type
using propagate_on_container_copy_assignment
using propagate_on_container_move_assignment
using propagate_on_container_swap

Public Member Functions

const allocator_typeget_allocator () const noexcept
 DefaultInitAllocatorAdaptor () noexcept=default
 DefaultInitAllocatorAdaptor (const allocator_type &allocator_) noexcept
template<class To>
 DefaultInitAllocatorAdaptor (const DefaultInitAllocatorAdaptor< To, typename allocator_traits::template rebind_alloc< To > > &allocator_) noexcept
Tallocate (std::size_t n)
void deallocate (T *p, std::size_t n) noexcept
template<typename U>
void construct (U *ptr) const noexcept(std::is_nothrow_default_constructible_v< U >)

Public Attributes

allocator_type allocator

Detailed Description

template<typename T, typename ActualAllocator = std::allocator<T>>
class rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >

Definition at line 30 of file DefaultInitAllocatorAdaptor.h.

Member Typedef Documentation

◆ allocator_traits

template<typename T, typename ActualAllocator = std::allocator<T>>
using rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::allocator_traits = std::allocator_traits<ActualAllocator>

Definition at line 32 of file DefaultInitAllocatorAdaptor.h.

◆ allocator_type

template<typename T, typename ActualAllocator = std::allocator<T>>
using rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::allocator_type
Initial value:
typename allocator_traits::template rebind_alloc<value_type>

Definition at line 43 of file DefaultInitAllocatorAdaptor.h.

◆ propagate_on_container_copy_assignment

template<typename T, typename ActualAllocator = std::allocator<T>>
using rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::propagate_on_container_copy_assignment
Initial value:
typename allocator_traits::propagate_on_container_copy_assignment

Definition at line 79 of file DefaultInitAllocatorAdaptor.h.

◆ propagate_on_container_move_assignment

template<typename T, typename ActualAllocator = std::allocator<T>>
using rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::propagate_on_container_move_assignment
Initial value:
typename allocator_traits::propagate_on_container_move_assignment

Definition at line 81 of file DefaultInitAllocatorAdaptor.h.

◆ propagate_on_container_swap

template<typename T, typename ActualAllocator = std::allocator<T>>
using rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::propagate_on_container_swap
Initial value:
typename allocator_traits::propagate_on_container_swap

Definition at line 83 of file DefaultInitAllocatorAdaptor.h.

◆ value_type

template<typename T, typename ActualAllocator = std::allocator<T>>
using rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::value_type = typename allocator_traits::value_type

Definition at line 34 of file DefaultInitAllocatorAdaptor.h.

Constructor & Destructor Documentation

◆ DefaultInitAllocatorAdaptor() [1/3]

template<typename T, typename ActualAllocator = std::allocator<T>>
rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::DefaultInitAllocatorAdaptor ( )
defaultnoexcept

◆ DefaultInitAllocatorAdaptor() [2/3]

template<typename T, typename ActualAllocator = std::allocator<T>>
rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::DefaultInitAllocatorAdaptor ( const allocator_type & allocator_)
inlineexplicitnoexcept

Definition at line 54 of file DefaultInitAllocatorAdaptor.h.

◆ DefaultInitAllocatorAdaptor() [3/3]

template<typename T, typename ActualAllocator = std::allocator<T>>
template<class To>
rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::DefaultInitAllocatorAdaptor ( const DefaultInitAllocatorAdaptor< To, typename allocator_traits::template rebind_alloc< To > > & allocator_)
inlineexplicitnoexcept

Definition at line 59 of file DefaultInitAllocatorAdaptor.h.

Member Function Documentation

◆ allocate()

template<typename T, typename ActualAllocator = std::allocator<T>>
T * rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::allocate ( std::size_t n)
inline

Definition at line 65 of file DefaultInitAllocatorAdaptor.h.

◆ construct()

template<typename T, typename ActualAllocator = std::allocator<T>>
template<typename U>
void rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::construct ( U * ptr) const
inlinenoexcept

Definition at line 74 of file DefaultInitAllocatorAdaptor.h.

◆ deallocate()

template<typename T, typename ActualAllocator = std::allocator<T>>
void rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::deallocate ( T * p,
std::size_t n )
inlinenoexcept

Definition at line 69 of file DefaultInitAllocatorAdaptor.h.

◆ get_allocator()

template<typename T, typename ActualAllocator = std::allocator<T>>
const allocator_type & rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::get_allocator ( ) const
inlinenodiscardnoexcept

Definition at line 48 of file DefaultInitAllocatorAdaptor.h.

Member Data Documentation

◆ allocator

template<typename T, typename ActualAllocator = std::allocator<T>>
allocator_type rawspeed::DefaultInitAllocatorAdaptor< T, ActualAllocator >::allocator

Definition at line 46 of file DefaultInitAllocatorAdaptor.h.


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