Free-function empty, which does the expected thing whenever arg.length works.
struct S { size_t length; } S a = { length: 0 }; assert(a.empty); S b = { length: 1 }; assert(!b.empty);
Free-function empty, which does the expected thing whenever arg.length works.