BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslma_managedallocator

Typedefs

typedef bslma::ManagedAllocator bslma_ManagedAllocator
 This alias is defined for backward compatibility.
 

Detailed Description

Outline

Purpose

Provide a protocol for memory allocators that support release.

Deprecated:
use bdlma_managedallocator instead.

Classes

See also
bslma_allocator

Description

This component provides a protocol (pure abstract interface) class, bslma::ManagedAllocator, which extends the base-level protocol class, bslma::Allocator, providing the ability to release all memory currently allocated through the protocol back to the memory supplier of the derived concrete allocator object.

,-----------------------.
`-----------------------'
| release
V
,----------------.
( bslma::Allocator )
`----------------'
allocate
deallocate
Definition bslma_managedallocator.h:101

Usage

The bslma::ManagedAllocator protocol class serves as a useful internal interface for documentation purpose and could be used as a parameter to low-level helper functions for some implementations. We have yet to find a suitable real-world example and when one becomes available, it will be added.

Typedef Documentation

◆ bslma_ManagedAllocator