Pigweed
Loading...
Searching...
No Matches
pw::allocator::internal::BaseUniquePtr Class Reference

#include <unique_ptr.h>

Protected Types

using Capability = ::pw::allocator::Capability
 

Static Protected Member Functions

static bool HasCapability (Deallocator *deallocator, Capability capability)
 
static void Deallocate (Deallocator *deallocator, void *ptr)
 

Detailed Description

This class simply provides type-erased static methods to check capabilities and deallocate memory in a unique pointer. This allows UniquePtr<T> to be declared without a complete declaration of Deallocator, breaking the dependency cycle between UniquePtr<T>` andAllocator::MakeUnique<T>()``.


The documentation for this class was generated from the following file: