RefCounted.this

The allocator is a singleton, so no need to pass it in to the constructor

  1. this(Args args)
    struct RefCounted(RefCountedType, Allocator = typeof(theAllocator), Flag!"supportGC" supportGC = gcExists ? Flag!"supportGC".yes : Flag!"supportGC".no)
    static if(isGlobal)
    this
    (
    Args...
    )
    (
    auto ref Args args
    )
    if (
    isAllocator!Allocator
    )
  2. this(Allocator allocator, Args args)

Meta