std::shared_ptr allocator that uses Allocate / Free.
More...
#include <StormByte/safe_pointers.hxx>
|
| 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.
|
| |
template<typename T>
struct StormByte::Heap::Allocator< T >
std::shared_ptr allocator that uses Allocate / Free.
- Template Parameters
-
| T | Control-block value type. |
◆ value_type
◆ Allocator() [1/2]
◆ Allocator() [2/2]
template<typename T >
template<typename U >
Rebind constructor.
- Template Parameters
-
| U | Other allocator value type. |
◆ allocate()
Allocate count objects of T.
- Parameters
-
- Returns
- Storage for
count objects.
◆ deallocate()
Release storage obtained from allocate.
- Parameters
-
| pointer | Storage to release. |
◆ operator==()
template<typename T >
template<typename U >
All Allocator instances compare equal.
- Template Parameters
-
| U | Other allocator value type. |
- Returns
- Always
true.
The documentation for this struct was generated from the following file: