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]
  2. shared(Allocator) allocator [@property getter]
    mixintemplate DefaultAllocator()
    @property const @nogc nothrow pure @trusted
    shared(Allocator)
    allocator
    ()
    out (allocator) { assert (allocator !is null); }

Return Value

Type: shared(Allocator)

Used allocator.

Postcondition: allocator !is null

Meta