empty

Returns true iff thing is empty

pure nothrow
bool
empty
(
T
)
(
in T thing
)
if (
is(T : Region!Args,
Args...
) ||
is(T : Region!Args.TaggedInterval,
Args...
)
)

Examples

alias R = Region!(int, int);
alias TI = R.TaggedInterval;

R emptyRegion;
TI emptyTI;
auto region = R(0, 0, 10);
auto ti = TI(0, 0, 10);

assert(empty(emptyRegion));
assert(empty(emptyTI));
assert(!empty(region));
assert(!empty(ti));

See Also

Region.empty, Region.TaggedInterval.empty

Meta