Clio develop
The XRP Ledger API server.
|
A constraint class to ensure an integer value is between two numbers (inclusive) More...
#include <ConfigConstraints.hpp>
Public Member Functions | |
constexpr | NumberValueConstraint (NumType min, NumType max) |
Constructs a constraint where the number must be between min_ and max_. | |
![]() | |
std::optional< Error > | checkConstraint (Value const &val) const |
Check if the value meets the specific constraint. | |
Additional Inherited Members | |
![]() | |
template<std::size_t ArrSize> | |
constexpr std::string | makeErrorMsg (std::string_view key, Value const &value, std::array< char const *, ArrSize > arr) const |
Creates an error message for all constraints that must satisfy certain hard-coded values. | |
A constraint class to ensure an integer value is between two numbers (inclusive)
|
inlineconstexpr |
Constructs a constraint where the number must be between min_ and max_.
min | the minimum number it can be to satisfy this constraint |
max | the maximum number it can be to satisfy this constraint |