empty

Returns true iff thing is empty

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

Examples

1 alias R = Region!(int, int);
2 alias TI = R.TaggedInterval;
3 
4 R emptyRegion;
5 TI emptyTI;
6 auto region = R(0, 0, 10);
7 auto ti = TI(0, 0, 10);
8 
9 assert(empty(emptyRegion));
10 assert(empty(emptyTI));
11 assert(!empty(region));
12 assert(!empty(ti));

See Also

Region.empty, Region.TaggedInterval.empty

Meta