Classes | Public Types | Public Member Functions | List of all members
custom_allocator< T > Class Template Reference

Classes

struct  rebind
 

Public Types

using const_pointer = const T *
 
using const_reference = const T &
 
using difference_type = std::ptrdiff_t
 
using pointer = T *
 
using propagate_on_container_move_assignment = std::true_type
 
using reference = T &
 
using size_type = std::size_t
 
using value_type = T
 

Public Member Functions

const_pointer address (const_reference x) const noexcept
 
pointer address (reference x) const noexcept
 
pointer allocate (size_type n, const void *=0)
 
template<typename U , typename... Args>
void construct (U *p, Args &&... args)
 
 custom_allocator ()=default
 
 custom_allocator (const custom_allocator &)=default
 
template<typename U >
 custom_allocator (const custom_allocator< U > &)
 
void deallocate (T *p, size_type)
 
template<typename U >
void destroy (U *p)
 
size_type max_size () const noexcept
 

Detailed Description

template<typename T>
class custom_allocator< T >

Definition at line 40 of file custom_allocator_tests.cpp.

Member Typedef Documentation

◆ const_pointer

template<typename T >
using custom_allocator< T >::const_pointer = const T*

Definition at line 44 of file custom_allocator_tests.cpp.

◆ const_reference

template<typename T >
using custom_allocator< T >::const_reference = const T&

Definition at line 46 of file custom_allocator_tests.cpp.

◆ difference_type

template<typename T >
using custom_allocator< T >::difference_type = std::ptrdiff_t

Definition at line 48 of file custom_allocator_tests.cpp.

◆ pointer

template<typename T >
using custom_allocator< T >::pointer = T*

Definition at line 43 of file custom_allocator_tests.cpp.

◆ propagate_on_container_move_assignment

template<typename T >
using custom_allocator< T >::propagate_on_container_move_assignment = std::true_type

Definition at line 49 of file custom_allocator_tests.cpp.

◆ reference

template<typename T >
using custom_allocator< T >::reference = T&

Definition at line 45 of file custom_allocator_tests.cpp.

◆ size_type

template<typename T >
using custom_allocator< T >::size_type = std::size_t

Definition at line 47 of file custom_allocator_tests.cpp.

◆ value_type

template<typename T >
using custom_allocator< T >::value_type = T

Definition at line 42 of file custom_allocator_tests.cpp.

Constructor & Destructor Documentation

◆ custom_allocator() [1/3]

template<typename T >
custom_allocator< T >::custom_allocator ( )
default

◆ custom_allocator() [2/3]

template<typename T >
custom_allocator< T >::custom_allocator ( const custom_allocator< T > &  )
default

◆ custom_allocator() [3/3]

template<typename T >
template<typename U >
custom_allocator< T >::custom_allocator ( const custom_allocator< U > &  )
inline

Definition at line 60 of file custom_allocator_tests.cpp.

Member Function Documentation

◆ address() [1/2]

template<typename T >
const_pointer custom_allocator< T >::address ( const_reference  x) const
inlinenoexcept

Definition at line 64 of file custom_allocator_tests.cpp.

◆ address() [2/2]

template<typename T >
pointer custom_allocator< T >::address ( reference  x) const
inlinenoexcept

Definition at line 62 of file custom_allocator_tests.cpp.

◆ allocate()

template<typename T >
pointer custom_allocator< T >::allocate ( size_type  n,
const void *  = 0 
)
inline

Definition at line 66 of file custom_allocator_tests.cpp.

◆ construct()

template<typename T >
template<typename U , typename... Args>
void custom_allocator< T >::construct ( U *  p,
Args &&...  args 
)
inline

Definition at line 88 of file custom_allocator_tests.cpp.

◆ deallocate()

template<typename T >
void custom_allocator< T >::deallocate ( T *  p,
size_type   
)
inline

Definition at line 81 of file custom_allocator_tests.cpp.

◆ destroy()

template<typename T >
template<typename U >
void custom_allocator< T >::destroy ( U *  p)
inline

Definition at line 93 of file custom_allocator_tests.cpp.

◆ max_size()

template<typename T >
size_type custom_allocator< T >::max_size ( ) const
inlinenoexcept

Definition at line 83 of file custom_allocator_tests.cpp.


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


mp2p_icp
Author(s):
autogenerated on Wed Oct 23 2024 02:45:42