Simplified version of LimitCmp that uses default comparison and default initializer
type of the value
set of allowed values
See Implementation
Simplified version of LimitCmp that uses default comparison and default initializer