Minimum value constraint ( minimum and exclusiveMinimum ).
More...
#include <constraints.hpp>
Public Member Functions | |
| template<anch::val::Number V> | |
| bool | check (const V &number, std::string &message) const |
Public Attributes | |
| N | value |
| bool | exclusive = false |
Minimum value constraint ( minimum and exclusiveMinimum ).
Integers are compared without conversion ( std::cmp_less ), floating point numbers as long double .
| N | the bound type |
| bool anch::val::Minimum< N >::check | ( | const V & | number, |
| std::string & | message ) const |
Check value
| V | the value type |
| number | the value |
| message | the error message (set when value is invalid) |
true when value is valid | bool anch::val::Minimum< N >::exclusive = false |
Value has to be greater than minimum (instead of greater or equal)
| N anch::val::Minimum< N >::value |
Minimum value