unionLength

Computes the length of union of multiple ranges. The input ranges are passed as a range of ranges and each is assumed to be sorted by less.

pragma(inline, false)
size_t
unionLength
(
alias less = "a < b"
RangeOfRanges
)
(
RangeOfRanges ror
)

Parameters

less

Predicate the given ranges are sorted by.

ror RangeOfRanges

A range of ranges sorted by less to compute the intersection for.

Return Value

Type: size_t

A length of the union of the ranges in ror.

Meta