Standard library » Containers » Allocator module

A generic allocator where allocation and release are not O(1) operations.

An allocator doesn't destroy its elements in its destructor, they must be destroyed manually.

It doesn't throw exceptions. Instead, asserts are used to ensure valid usage.

Files

file bn_best_fit_allocator.h
file bn_best_fit_allocator_fwd.h

Classes

class bn::ibest_fit_allocator
Base class of best_fit_allocator.
template<int MaxItems>
class bn::best_fit_allocator
ibest_fit_allocator implementation that uses a fixed number of maximum items.