Min

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 Min (
T
T min
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)

min

smallest allowed value

init

default value when it is not given in the configuration file

Meta