Quick Links:

bal | bbl | bdl | bsl

Namespaces | Typedefs

Component bslma_managedallocator
[Package bslma]

Provide a protocol for memory allocators that support release. More...

Namespaces

namespace  bslma

Typedefs

typedef bslma::ManagedAllocator bslma_ManagedAllocator

Detailed Description

Outline
Purpose:
Provide a protocol for memory allocators that support release.
Deprecated:
use bdlma_managedallocator instead.
Classes:
bslma::ManagedAllocator protocol for allocators with release capability
See also:
Component 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.
   ,-----------------------.
  ( bslma::ManagedAllocator )
   `-----------------------'
               |       release
               V
       ,----------------.
      ( bslma::Allocator )
       `----------------'
                       allocate
                       deallocate
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