DefaultAllocator.allocator

This property checks if the allocator was set in the constructor and sets it to the default one, if not.

  1. shared(Allocator) allocator [@property getter]
    mixintemplate DefaultAllocator()
    @property @nogc nothrow pure @safe
    shared(Allocator)
    allocator
    ()
    out (allocator) { assert (allocator !is null); }
  2. shared(Allocator) allocator [@property getter]

Return Value

Type: shared(Allocator)

Used allocator.

Postcondition: allocator !is null

Meta