20 return std::make_shared<ArrayOrderedPairsValidator<TYPE>>(*this);
29template <
typename TYPE>
31 std::stringstream
error;
34 if (
value.size() % 2 != 0) {
38 for (
auto it =
value.begin(); it !=
value.end(); it += 2) {
39 if (*it > *(it + 1)) {
40 error <<
"Pair (" << *it <<
", " << *(it + 1) <<
") is not ordered.\n";
51#if defined(_WIN32) || defined(__clang__) && defined(__APPLE__)
double value
The value of the point.
Kernel/ArrayOrderedPairsValidator.h.
std::string checkValidity(const std::vector< TYPE > &value) const override
Function that actually does the work of checking the validity of the array elements.
IValidator_sptr clone() const override
Clone the current state.
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
std::string to_string(const wide_integer< Bits, Signed > &n)