µOS++ IIIe Reference  v6.3.15
“Perfekt ist nicht gut genug”
The third edition of µOS++, a POSIX inspired open source system, written in C++.
os::estd::pmr::polymorphic_allocator< T > Class Template Reference

Public Types

typedef T value_type
 

Public Member Functions

 polymorphic_allocator () noexcept
 
 polymorphic_allocator (memory_resource *r) noexcept
 
 polymorphic_allocator (polymorphic_allocator const &a)=default
 
template<typename U >
 polymorphic_allocator (polymorphic_allocator< U > const &other) noexcept
 
value_typeallocate (std::size_t n)
 
void deallocate (value_type *p, std::size_t n) noexcept
 
std::size_t max_size (void) const noexcept
 
polymorphic_allocatoroperator= (polymorphic_allocator const &a)=default
 
memory_resourceresource (void) const noexcept
 
polymorphic_allocator select_on_container_copy_construction (void) const noexcept
 

Private Attributes

memory_resourceres_
 

Detailed Description

template<typename T>
class os::estd::pmr::polymorphic_allocator< T >

Definition at line 58 of file memory_resource.

Types

◆ value_type

template<typename T>
typedef T os::estd::pmr::polymorphic_allocator< T >::value_type

Definition at line 132 of file memory_resource.

Constructor & Destructor Documentation

◆ polymorphic_allocator() [1/4]

template<typename T >
os::estd::pmr::polymorphic_allocator< T >::polymorphic_allocator ( )
noexcept

Definition at line 200 of file memory_resource.

◆ polymorphic_allocator() [2/4]

template<typename T >
os::estd::pmr::polymorphic_allocator< T >::polymorphic_allocator ( memory_resource r)
inlinenoexcept

Definition at line 208 of file memory_resource.

◆ polymorphic_allocator() [3/4]

template<typename T>
os::estd::pmr::polymorphic_allocator< T >::polymorphic_allocator ( polymorphic_allocator< T > const &  a)
default

◆ polymorphic_allocator() [4/4]

template<typename T >
template<typename U >
os::estd::pmr::polymorphic_allocator< T >::polymorphic_allocator ( polymorphic_allocator< U > const &  other)
inlinenoexcept

Definition at line 217 of file memory_resource.

Member Function Documentation

◆ allocate()

template<typename T >
polymorphic_allocator< T >::value_type * os::estd::pmr::polymorphic_allocator< T >::allocate ( std::size_t  n)
inline

Definition at line 226 of file memory_resource.

◆ deallocate()

template<typename T >
void os::estd::pmr::polymorphic_allocator< T >::deallocate ( value_type p,
std::size_t  n 
)
inlinenoexcept

Definition at line 241 of file memory_resource.

◆ max_size()

template<typename T >
std::size_t os::estd::pmr::polymorphic_allocator< T >::max_size ( void  ) const
inlinenoexcept

Definition at line 249 of file memory_resource.

◆ operator=()

template<typename T>
polymorphic_allocator& os::estd::pmr::polymorphic_allocator< T >::operator= ( polymorphic_allocator< T > const &  a)
default

◆ resource()

template<typename T >
memory_resource * os::estd::pmr::polymorphic_allocator< T >::resource ( void  ) const
inlinenoexcept

Definition at line 264 of file memory_resource.

◆ select_on_container_copy_construction()

template<typename T >
polymorphic_allocator< T > os::estd::pmr::polymorphic_allocator< T >::select_on_container_copy_construction ( void  ) const
inlinenoexcept

Definition at line 256 of file memory_resource.

Member Data Documentation

◆ res_

template<typename T>
memory_resource* os::estd::pmr::polymorphic_allocator< T >::res_
private

Definition at line 164 of file memory_resource.


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