Allocator deleter. More...
#include <os-memory.h>
Public Types | |
using | allocator_traits = std::allocator_traits< A > |
Standard allocator traits definition. | |
using | allocator_type = A |
Standard allocator type definition. | |
using | pointer = typename allocator_traits::pointer |
Public Member Functions | |
Constructors & Destructor | |
allocator_deleter () | |
Default constructor. | |
allocator_deleter (const allocator_type &other) | |
Copy constructor. | |
allocator_deleter (allocator_deleter &&other)=default | |
Move constructor. | |
~allocator_deleter ()=default | |
Destruct the allocator deleter. | |
Operators | |
allocator_deleter & | operator= (const allocator_deleter &other)=default |
Copy assignment operator. | |
allocator_deleter & | operator= (allocator_deleter &&other)=default |
Move assignment operator. | |
void | operator() (pointer addr) const |
Allocator deleter.
A | Allocator type. |
This class acts as a function to be used as deleter by smart pointers, like unique_ptr<>
.
It refers to the allocator to destruct and deallocate the object.
Definition at line 849 of file os-memory.h.
using os::rtos::memory::allocator_deleter< A >::allocator_traits = std::allocator_traits<A> |
Standard allocator traits definition.
Definition at line 861 of file os-memory.h.
using os::rtos::memory::allocator_deleter< A >::allocator_type = A |
Standard allocator type definition.
Definition at line 856 of file os-memory.h.
using os::rtos::memory::allocator_deleter< A >::pointer = typename allocator_traits::pointer |
Definition at line 863 of file os-memory.h.
os::rtos::memory::allocator_deleter< A >::allocator_deleter | ( | ) |
Default constructor.
os::rtos::memory::allocator_deleter< A >::allocator_deleter | ( | const allocator_type & | other | ) |
Copy constructor.
other | Reference to allocator. |
|
default |
Move constructor.
other | Reference to existing allocator. |
|
default |
Destruct the allocator deleter.
void os::rtos::memory::allocator_deleter< A >::operator() | ( | pointer | addr | ) | const |
|
default |
Move assignment operator.
other | Reference to existing allocator. |
|
default |
Copy assignment operator.
other | Reference to existing allocator. |