Struct Ordinal

An integral type with specified inclusive bounds.

struct Ordinal(alias lower, alias upper)
  
if (isIntegral!(typeof(lower)) && isIntegral!(typeof(upper)));

No bounds checking is implemented.

See also bound.d in https://code.dlang.org/packages/phobos-next

Templates

NameDescription
implementation