ocean.util.container.map.model.BucketElementGCAllocator

A bucket element allocator using the D runtime memory manager. Bucket elements are newed by get() and deleted by recycle().

Members

Classes

BucketElementGCAllocator
class BucketElementGCAllocator(Bucket)

A bucket element allocator using the D runtime memory manager. Even though this memory manager is called "GC-managed" this class in fact doesn't rely on garbage collection but explicitly deletes unused bucket elements.

Functions

instantiateAllocator
BucketElementGCAllocator!(Map.Bucket) instantiateAllocator()

Creates an instance of BucketElementGCAllocator which is suitable for usage with the Map type passed as a template parameter.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).