Function email::utils::optional_stoi

Function Documentation

std::optional<int> email::utils::optional_stoi(const std::string &str)

Try to call std::stoi.

Parameters:

str – the string to convert to int

Returns:

the number, or std::nullopt if it fails