µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::estd::pmr::polymorphic_allocator< T > Class Template Reference

#include <memory_resource>

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 136 of file memory_resource.

Member Typedef Documentation

◆ value_type

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

Definition at line 140 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 208 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 216 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 225 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 234 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 249 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 257 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 272 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 264 of file memory_resource.

Member Data Documentation

◆ res_

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

Definition at line 172 of file memory_resource.


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