Function email::utils::optional_stoi
Defined in File utils.hpp
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::nulloptif it fails