Max

Configuration settings that are required to be within a certain numeric range can be marked as such by wrapping them with this template.

If the value is outside the provided range, an exception is thrown.

The value can be accessed with the opCall method

struct Max (
T
T max
T init = T.init
) {}

Members

Mixins

__anonymous
mixin WrapperStructCore!(T, init)
Undocumented in source.

Parameters

T

the original type of the variable (can be another struct)

max

biggest allowed value

init

default value when it is not given in the configuration file

Meta