Function Catch::parseUInt

Function Documentation

Optional<unsigned int> Catch::parseUInt(std::string const &input, int base = 10)

Parses unsigned int from the input, using provided base

Effectively a wrapper around std::stoul but with better error checking e.g. “-1” is rejected, instead of being parsed as UINT_MAX.