Zserio C++ runtime library  1.0.2
Built for Zserio 2.14.1
zserio::pmr::PolymorphicAllocator< T > Class Template Reference

#include <PolymorphicAllocator.h>

Inheritance diagram for zserio::pmr::PolymorphicAllocator< T >:
Collaboration diagram for zserio::pmr::PolymorphicAllocator< T >:

Classes

struct  rebind
 

Public Types

using propagate_on_container_copy_assignment = std::false_type
 
using propagate_on_container_move_assignment = std::false_type
 
using propagate_on_container_swap = std::false_type
 

Public Member Functions

PolymorphicAllocator select_on_container_copy_construction () const
 

Detailed Description

template<class T = uint8_t>
class zserio::pmr::PolymorphicAllocator< T >

Non-propagating version of the polymorphic allocator. This allocator behaves as the polymorphic_allocator from C++17.

Definition at line 181 of file PolymorphicAllocator.h.

Member Typedef Documentation

◆ propagate_on_container_copy_assignment

template<class T = uint8_t>
using zserio::pmr::PolymorphicAllocator< T >::propagate_on_container_copy_assignment = std::false_type

Definition at line 186 of file PolymorphicAllocator.h.

◆ propagate_on_container_move_assignment

template<class T = uint8_t>
using zserio::pmr::PolymorphicAllocator< T >::propagate_on_container_move_assignment = std::false_type

Definition at line 187 of file PolymorphicAllocator.h.

◆ propagate_on_container_swap

template<class T = uint8_t>
using zserio::pmr::PolymorphicAllocator< T >::propagate_on_container_swap = std::false_type

Definition at line 188 of file PolymorphicAllocator.h.

Member Function Documentation

◆ select_on_container_copy_construction()

template<class T = uint8_t>
PolymorphicAllocator zserio::pmr::PolymorphicAllocator< T >::select_on_container_copy_construction ( ) const
inline

Returns instance of the allocator to be used when a container gets copied.

Definition at line 193 of file PolymorphicAllocator.h.


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