voidStruct

As boxVoid/unboxVoid, but returns a struct with zero or one members. .tupleof can then be used to paste the tuple in e.g. an argument list.

  1. auto voidStruct(T value)
  2. auto voidStruct(T value)
    voidStruct
    (
    T
    )
    (
    lazy T value
    )
    if (
    is(T == void)
    )

Meta