Zserio C++17 runtime library
0.5.0
Built for Zserio 2.17.0
|
#include <AllocatorHolder.h>
Public Types | |
using | allocator_type = ALLOC |
Public Member Functions | |
AllocatorHolder (const allocator_type &) | |
allocator_type | get_allocator () const |
AllocatorHolder ()=default | |
~AllocatorHolder ()=default | |
AllocatorHolder (const AllocatorHolder &other)=default | |
AllocatorHolder & | operator= (const AllocatorHolder &other)=default |
AllocatorHolder (AllocatorHolder &&other)=default | |
AllocatorHolder & | operator= (AllocatorHolder &&other)=default |
Protected Member Functions | |
void | set_allocator (const allocator_type &) |
void | set_allocator (allocator_type &&) |
allocator_type | get_allocator_ref () const |
Base class for allocator-holding classes with get/set/allocator/ref interface specialized for empty allocator classes.
Definition at line 119 of file AllocatorHolder.h.
using zserio::AllocatorHolder< ALLOC, true >::allocator_type = ALLOC |
Definition at line 122 of file AllocatorHolder.h.
|
inlineexplicit |
Constructor from given allocator.
allocator | Allocator to be stored. |
Definition at line 129 of file AllocatorHolder.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inline |
Allocator getter.
Definition at line 153 of file AllocatorHolder.h.
|
inlineprotected |
Allocator getter.
Definition at line 180 of file AllocatorHolder.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inlineprotected |
Allocator setter.
allocator | Allocator to be move-assigned to the stored allocator. |
Definition at line 172 of file AllocatorHolder.h.
|
inlineprotected |
Allocator setter.
allocator | Allocator to be copy-assigned to the stored allocator. |
Definition at line 164 of file AllocatorHolder.h.