Range.overlapAmount

Calculates the number of values shared by this range and the other range specified.

struct Range(T)
size_t
overlapAmount

Parameters

other Range

instance to compare with this

Return Value

Type: size_t

the number of values shared by the two ranges

Throws

Exception if both this instance and other cover the full range, i.e. this.is_full_range && other.full_range is true. (This is to prevent an integer overflow.)

Meta