std::shared_ptr allocator that uses Allocate / Free.
More...
#include <StormByte/safe/pointers.hxx>
Public Types | |
| using | value_type = T |
| Allocator value type. | |
Public Member Functions | |
| constexpr | Allocator () noexcept=default |
| Default constructor. | |
| template<typename U > | |
| constexpr | Allocator (const Allocator< U > &) noexcept |
| Rebind constructor. | |
| T * | allocate (std::size_t count) |
Allocate count objects of T. | |
| void | deallocate (T *pointer, std::size_t) noexcept |
| Release storage obtained from allocate. | |
| template<typename U > | |
| constexpr bool | operator== (const Allocator< U > &) const noexcept |
| All Allocator instances compare equal. | |
std::shared_ptr allocator that uses Allocate / Free.
| T | Control-block value type. |
| using StormByte::Safe::Heap::Allocator< T >::value_type = T |
Allocator value type.
|
constexprdefaultnoexcept |
Default constructor.
|
inlineconstexprnoexcept |
Rebind constructor.
| U | Other allocator value type. |
|
inline |
Allocate count objects of T.
| count | Object count. |
count objects.
|
inlinenoexcept |
Release storage obtained from allocate.
| pointer | Storage to release. |
|
inlineconstexprnoexcept |
All Allocator instances compare equal.
| U | Other allocator value type. |
true.