UniquePointer that uses our Allocator.
More...
#include <UniquePointer.hpp>
|
using | BaseType = std::unique_ptr< AType, void(*)(AType *const)> |
| For readibility and fighting a bug with namespaced template base class constructors.
|
|
|
static BaseType | InitBase (AType *const APointer, std::true_type AIsDestructible) noexcept |
| Used by this type's constructors. More...
|
|
static BaseType | InitBase (AType *const APointer, std::false_type AIsDestructible) noexcept |
| Used by this type's constructors. More...
|
|
static void | Deallocate (AType *const APointer) noexcept |
| Deallocates APointer using the Allocator's Heap. More...
|
|
static void | Delete (AType *const APointer) noexcept |
| Deletes APointer using the Allocator. More...
|
|
template<typename AType>
class CYB::API::UniquePointer< AType >
UniquePointer that uses our Allocator.
Definition at line 7 of file UniquePointer.hpp.
Initialize an empty UniquePointer.
- Thread Safety
- This function requires no thread safety
Initialize an empty UniquePointer.
- Parameters
-
AIgnored | This parameter is included for STL compliance |
- Thread Safety
- This function requires no thread safety
Initialize a UniquePointer with APointer
.
- Parameters
-
- Thread Safety
- This function requires no thread safety
Deallocates APointer
using the Allocator's Heap.
- Parameters
-
APointer | The pointer to deallocate |
- Thread Safety
- This function requires no thread safety
Deletes APointer
using the Allocator.
- Parameters
-
APointer | The pointer to delete |
- Thread Safety
- This function requires no thread safety
Used by this type's constructors.
- Parameters
-
APointer | The pointer the UniquePointer will contain |
AIsDestructible | Used for overloading. Ignored |
- Returns
- An std::unique_ptr of AType with the properly set Deleter
- Thread Safety
- This function requires no thread safety
Used by this type's constructors.
- Parameters
-
APointer | The pointer the UniquePointer will contain |
AIsDestructible | Used for overloading. Ignored |
- Returns
- An std::unique_ptr of AType with the properly set Deleter
- Thread Safety
- This function requires no thread safety
The documentation for this class was generated from the following file: