Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtMultimediaPrivate::pmr::polymorphic_allocator< T > Class Template Reference

#include <q_pmr_emulation_p.h>

Collaboration diagram for QtMultimediaPrivate::pmr::polymorphic_allocator< T >:

Public Types

using value_type = T

Public Member Functions

 polymorphic_allocator () noexcept=default
 polymorphic_allocator (memory_resource *r)
 polymorphic_allocator (const polymorphic_allocator &other) noexcept=default
template<class U>
 polymorphic_allocator (const polymorphic_allocator< U > &other) noexcept
polymorphic_allocatoroperator= (const polymorphic_allocator &other) noexcept=default
T * allocate (size_t n)
void deallocate (T *p, size_t n)
memory_resourceresource () const noexcept
polymorphic_allocator select_on_container_copy_construction () const

Detailed Description

template<class T>
class QtMultimediaPrivate::pmr::polymorphic_allocator< T >

Definition at line 119 of file q_pmr_emulation_p.h.

Member Typedef Documentation

◆ value_type

Definition at line 122 of file q_pmr_emulation_p.h.

Constructor & Destructor Documentation

◆ polymorphic_allocator() [1/4]

template<class T>
QtMultimediaPrivate::pmr::polymorphic_allocator< T >::polymorphic_allocator ( )
defaultnoexcept

◆ polymorphic_allocator() [2/4]

template<class T>
QtMultimediaPrivate::pmr::polymorphic_allocator< T >::polymorphic_allocator ( memory_resource * r)
inline

Definition at line 125 of file q_pmr_emulation_p.h.

◆ polymorphic_allocator() [3/4]

template<class T>
QtMultimediaPrivate::pmr::polymorphic_allocator< T >::polymorphic_allocator ( const polymorphic_allocator< T > & other)
defaultnoexcept

◆ polymorphic_allocator() [4/4]

template<class T>
template<class U>
QtMultimediaPrivate::pmr::polymorphic_allocator< T >::polymorphic_allocator ( const polymorphic_allocator< U > & other)
inlinenoexcept

Definition at line 129 of file q_pmr_emulation_p.h.

Member Function Documentation

◆ allocate()

template<class T>
T * QtMultimediaPrivate::pmr::polymorphic_allocator< T >::allocate ( size_t n)
inlinenodiscard

Definition at line 137 of file q_pmr_emulation_p.h.

◆ deallocate()

template<class T>
void QtMultimediaPrivate::pmr::polymorphic_allocator< T >::deallocate ( T * p,
size_t n )
inline

Definition at line 143 of file q_pmr_emulation_p.h.

◆ operator=()

template<class T>
polymorphic_allocator & QtMultimediaPrivate::pmr::polymorphic_allocator< T >::operator= ( const polymorphic_allocator< T > & other)
defaultnoexcept

◆ resource()

template<class T>
memory_resource * QtMultimediaPrivate::pmr::polymorphic_allocator< T >::resource ( ) const
inlinenodiscardnoexcept

Definition at line 146 of file q_pmr_emulation_p.h.

◆ select_on_container_copy_construction()

template<class T>
polymorphic_allocator QtMultimediaPrivate::pmr::polymorphic_allocator< T >::select_on_container_copy_construction ( ) const
inlinenodiscard

Definition at line 152 of file q_pmr_emulation_p.h.


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