casacore
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
casacore::new_del_allocator< T > Struct Template Reference

#include <Allocator.h>

Classes

struct  rebind
 

Public Types

using Super = std11_allocator< T >
 
using size_type = typename Super::size_type
 
using difference_type = typename Super::difference_type
 
using pointer = T *
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const T &
 
using value_type = typename Super::value_type
 

Public Member Functions

 new_del_allocator () noexcept
 
 new_del_allocator (const new_del_allocator &other) noexcept
 
template<typename TOther >
 new_del_allocator (const new_del_allocator< TOther > &) noexcept
 
 ~new_del_allocator () noexcept
 
pointer allocate (size_type elements, const void *=0)
 
void deallocate (pointer ptr, size_type)
 
template<typename U , typename... Args>
void construct (U *, Args &&...)
 
template<typename U >
void construct (U *ptr, U &&value)
 
template<typename U >
void construct (U *ptr, U &value)
 
template<typename U >
void construct (U *ptr, U const &value)
 
template<typename U >
void destroy (U *)
 

Detailed Description

template<typename T>
struct casacore::new_del_allocator< T >

Definition at line 139 of file Allocator.h.

Member Typedef Documentation

◆ const_pointer

template<typename T >
using casacore::new_del_allocator< T >::const_pointer = const T*

Definition at line 144 of file Allocator.h.

◆ const_reference

template<typename T >
using casacore::new_del_allocator< T >::const_reference = const T&

Definition at line 146 of file Allocator.h.

◆ difference_type

template<typename T >
using casacore::new_del_allocator< T >::difference_type = typename Super::difference_type

Definition at line 142 of file Allocator.h.

◆ pointer

template<typename T >
using casacore::new_del_allocator< T >::pointer = T*

Definition at line 143 of file Allocator.h.

◆ reference

template<typename T >
using casacore::new_del_allocator< T >::reference = T&

Definition at line 145 of file Allocator.h.

◆ size_type

template<typename T >
using casacore::new_del_allocator< T >::size_type = typename Super::size_type

Definition at line 141 of file Allocator.h.

◆ Super

template<typename T >
using casacore::new_del_allocator< T >::Super = std11_allocator<T>

Definition at line 140 of file Allocator.h.

◆ value_type

template<typename T >
using casacore::new_del_allocator< T >::value_type = typename Super::value_type

Definition at line 147 of file Allocator.h.

Constructor & Destructor Documentation

◆ new_del_allocator() [1/3]

template<typename T >
casacore::new_del_allocator< T >::new_del_allocator ( )
inlinenoexcept

Definition at line 153 of file Allocator.h.

◆ new_del_allocator() [2/3]

template<typename T >
casacore::new_del_allocator< T >::new_del_allocator ( const new_del_allocator< T > &  other)
inlinenoexcept

Definition at line 156 of file Allocator.h.

◆ new_del_allocator() [3/3]

template<typename T >
template<typename TOther >
casacore::new_del_allocator< T >::new_del_allocator ( const new_del_allocator< TOther > &  )
inlinenoexcept

Definition at line 161 of file Allocator.h.

◆ ~new_del_allocator()

template<typename T >
casacore::new_del_allocator< T >::~new_del_allocator ( )
inlinenoexcept

Definition at line 164 of file Allocator.h.

Member Function Documentation

◆ allocate()

template<typename T >
pointer casacore::new_del_allocator< T >::allocate ( size_type  elements,
const void *  = 0 
)
inline

Definition at line 167 of file Allocator.h.

◆ construct() [1/4]

template<typename T >
template<typename U , typename... Args>
void casacore::new_del_allocator< T >::construct ( U *  ,
Args &&  ... 
)
inline

Definition at line 178 of file Allocator.h.

◆ construct() [2/4]

template<typename T >
template<typename U >
void casacore::new_del_allocator< T >::construct ( U *  ptr,
U &&  value 
)
inline

Definition at line 180 of file Allocator.h.

References casacore::value().

◆ construct() [3/4]

template<typename T >
template<typename U >
void casacore::new_del_allocator< T >::construct ( U *  ptr,
U &  value 
)
inline

Definition at line 184 of file Allocator.h.

References casacore::value().

◆ construct() [4/4]

template<typename T >
template<typename U >
void casacore::new_del_allocator< T >::construct ( U *  ptr,
U const &  value 
)
inline

Definition at line 188 of file Allocator.h.

References casacore::value().

◆ deallocate()

template<typename T >
void casacore::new_del_allocator< T >::deallocate ( pointer  ptr,
size_type   
)
inline

Definition at line 174 of file Allocator.h.

◆ destroy()

template<typename T >
template<typename U >
void casacore::new_del_allocator< T >::destroy ( U *  )
inline

Definition at line 193 of file Allocator.h.


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