union_

Returns the union of all elements.

union_
(
Range
)
(
Range regions
)
if (
isInputRange!Range &&
is(ElementType!Range : Region!Args,
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.opBinary!"|", Region.TaggedInterval.opBinary!"|"

Meta