Function email::utils::optional_stoul

Function Documentation

std::optional<uint32_t> email::utils::optional_stoul(const std::string &str)

Try to call std::stoul.

Parameters:

str – the string to convert to unsigned long

Returns:

the number, or std::nullopt if it fails