template<typename Base>
class pw::allocator::internal::BasicAbstractDeallocator< Base >
Mix-in that provides default implementations of optional pw::Deallocator methods for a Base type that derives from pw::Deallocator (such as pw::Deallocator, pw::Allocator, or pw::allocator::Pool).
Inherits pw::Base.
◆ DoGetAllocated()
Returns the total bytes that have been allocated by this allocator, or kGetAllocatedUnsupported if this allocator does not track its total allocated bytes.
- Deprecated:
- Use
GetAllocatedBytes instead.
◆ DoGetAllocatedBytes()
Returns the total bytes that have been allocated by this allocator, or std::nullopt if this allocator does not track its total allocated bytes.
◆ DoGetInfo()
Returns deallocator-specific information about allocations.
Deallocators may support any number of InfoTypes. See that type for what each supported type returns.
- Parameters
-
| info_type | Type of information to query. See InfoType. |
| ptr | Pointer to allocated memory, if needed for the given info_type. |
- Returns
-
The documentation for this class was generated from the following file:
- pw_allocator/public/pw_allocator/abstract_deallocator.h