31#ifndef CFGFILE__CONSTRAINT_MIN_MAX_HPP__INCLUDED
32#define CFGFILE__CONSTRAINT_MIN_MAX_HPP__INCLUDED
71 bool check(
const T & value )
const override
73 return ( m_min <= value && value <= m_max );
Constraint that allowed values to be in the given range: min <= value <= max.
Definition constraint_min_max.hpp:51
constraint_min_max_t(const T &min, const T &max)
Construct constraint.
Definition constraint_min_max.hpp:54
~constraint_min_max_t()
Definition constraint_min_max.hpp:60
bool check(const T &value) const override
Check value for correctness.
Definition constraint_min_max.hpp:71
Base class for constraints.
Definition constraint.hpp:43