Range.opCall

Static opCall. Disables the default "constructor", with the advantage that the invariant is run after calling this method, making it impossible to construct invalid instances.

struct Range(T)
static
This
opCall
(
T min
,
T max
)
out (result) { assert (&result); }

Parameters

min T

minimum value of range

max T

maximum value of range

Return Value

Type: This

new Range instance

Throws

if min and max do not describe a valid range (see isValid)

Meta