std::stoi
std::stoi, std::stol, std::stoll
Defined in header <string> | ||
---|---|---|
int stoi( const std::string& str, std::size_t* pos = 0, int base = 10 ); int stoi( const std::wstring& str, std::size_t* pos = 0, int base = 10 ); | (1) | (since C++11) |
long stol( const std::string& str, std::size_t* pos = 0, int base = 10 ); long stol( const std::wstring& str, std::size_t* pos = 0, int base = 10 ); | (2) | (since C++11) |