LimitCmp

Configuration settings that are limited to a certain set of values can be marked as such by wrapping them with this template.

If the value is not in the provided set, an exception is thrown.

The value can be accessed with the opCall method

struct LimitCmp (
T
T init = T.init
alias comp = defComp!(T)
Set...
) {}

Members

Mixins

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

Parameters

T

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

init

default value when it is not given in the configuration file

comp

compare function to be used to compare two values from the set

Set

tuple of values that are valid

Meta