(C++) Check
January 6, 2018 ยท View on GitHub
Code snippets that let you check something. For example, if you can convert a data type to another.
- Check if a container is sorted, IsSorted
- Check if all doubles in a std::vector are about equal, AllAboutEqual
- Check if AnsiString can be converted to double, AnsiIsDouble
- Check if AnsiString can be converted to integer, AnsiIsInt
- Check if hexadecimal std::string can be converted to integer
- Check if an int is even
- Check if an int is odd
- Check if an int is perfect
- Check if an int is prime
- Check if std::string can be converted to any data type, CanCast
- Check if std::string can be converted to any data type, CanLexicalCast
- Check if std::string can be converted to double, IsDouble
- Check if std::string can be converted to integer, IsInt
- Check if WideString can be converted to double, WideIsDouble
- Check if WideString can be converted to integer, WideIsInt