We would like to use the same objects regardless of where they are. Objects are often composed of subobjects which must also find their way to the same storage. Memory model choice must appear in the template and class interfaces. The standard library encapsulates memory models in class interfaces called allocators. The default allocator type, called allocator , provides ordinary C-style memory management.
Users can define an allocator for standard classes to use instead.
List elements come from the specified Object Database storage allocator object. Don't depend on that allocator interface. The language permits generality without adding runtime overhead or a complicated interface. Return to The Cantrip Corpus . All Rights Reserved.