The OpenD Programming Language

RefCounted.construct

Factory method. Not necessary with non-global allocator but included for symmetry.

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

Meta