#ifndef CHECKS_H_ #define CHECKS_H_ #include #include #include namespace Utilities { class Checks { public: Checks() = delete; static bool isNumber(const std::string &val) { return !val.empty() && std::find_if(val.begin(), val.end(), [](char c) { return !std::isdigit(c); }) == val.end(); } private: }; } #endif