omni::stoi
Defined in omni/String.h
-
int omni::stoi(const string &str, std::size_t *pos = nullptr, int base = 10)
Interprets the string
str
as a signed integer value.- Parameters
str – The string to convert.
pos – Address of an integer to store the number of characters processed.
base – The number base.
- Throws
- Returns
Integer value corresponding to the contents of
str
.