std::stoi() takes first number in string?

According to the C++ standard(N4296), ยง 21.5 21.5 Numeric conversions [string.conversions] Effects: the first two functions call strtol(str.c_str(), ptr, base), and the last three functions call strtoul(str.c_str(), ptr, base), strtoll(str.c_str(), ptr, base), and strtoull( str.c_str(), ptr, base), respectively. Each function returns the converted result, if any. The argument ptr designates a pointer to an object … Read more