|
751 | 751 | using wstring = basic_string<wchar_t>;
|
752 | 752 |
|
753 | 753 | // \ref{string.conversions}, numeric conversions
|
754 |
| - int stoi(const string& str, size_t* idx = 0, int base = 10); |
755 |
| - long stol(const string& str, size_t* idx = 0, int base = 10); |
756 |
| - unsigned long stoul(const string& str, size_t* idx = 0, int base = 10); |
757 |
| - long long stoll(const string& str, size_t* idx = 0, int base = 10); |
758 |
| - unsigned long long stoull(const string& str, size_t* idx = 0, int base = 10); |
759 |
| - float stof(const string& str, size_t* idx = 0); |
760 |
| - double stod(const string& str, size_t* idx = 0); |
761 |
| - long double stold(const string& str, size_t* idx = 0); |
| 754 | + int stoi(const string& str, size_t* idx = nullptr, int base = 10); |
| 755 | + long stol(const string& str, size_t* idx = nullptr, int base = 10); |
| 756 | + unsigned long stoul(const string& str, size_t* idx = nullptr, int base = 10); |
| 757 | + long long stoll(const string& str, size_t* idx = nullptr, int base = 10); |
| 758 | + unsigned long long stoull(const string& str, size_t* idx = nullptr, int base = 10); |
| 759 | + float stof(const string& str, size_t* idx = nullptr); |
| 760 | + double stod(const string& str, size_t* idx = nullptr); |
| 761 | + long double stold(const string& str, size_t* idx = nullptr); |
762 | 762 | string to_string(int val);
|
763 | 763 | string to_string(unsigned val);
|
764 | 764 | string to_string(long val);
|
|
769 | 769 | string to_string(double val);
|
770 | 770 | string to_string(long double val);
|
771 | 771 |
|
772 |
| - int stoi(const wstring& str, size_t* idx = 0, int base = 10); |
773 |
| - long stol(const wstring& str, size_t* idx = 0, int base = 10); |
774 |
| - unsigned long stoul(const wstring& str, size_t* idx = 0, int base = 10); |
775 |
| - long long stoll(const wstring& str, size_t* idx = 0, int base = 10); |
776 |
| - unsigned long long stoull(const wstring& str, size_t* idx = 0, int base = 10); |
777 |
| - float stof(const wstring& str, size_t* idx = 0); |
778 |
| - double stod(const wstring& str, size_t* idx = 0); |
779 |
| - long double stold(const wstring& str, size_t* idx = 0); |
| 772 | + int stoi(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 773 | + long stol(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 774 | + unsigned long stoul(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 775 | + long long stoll(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 776 | + unsigned long long stoull(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 777 | + float stof(const wstring& str, size_t* idx = nullptr); |
| 778 | + double stod(const wstring& str, size_t* idx = nullptr); |
| 779 | + long double stold(const wstring& str, size_t* idx = nullptr); |
780 | 780 | wstring to_wstring(int val);
|
781 | 781 | wstring to_wstring(unsigned val);
|
782 | 782 | wstring to_wstring(long val);
|
|
4382 | 4382 | \indexlibrary{\idxcode{stoll}}%
|
4383 | 4383 | \indexlibrary{\idxcode{stoull}}%
|
4384 | 4384 | \begin{itemdecl}
|
4385 |
| -int stoi(const string& str, size_t* idx = 0, int base = 10); |
4386 |
| -long stol(const string& str, size_t* idx = 0, int base = 10); |
4387 |
| -unsigned long stoul(const string& str, size_t* idx = 0, int base = 10); |
4388 |
| -long long stoll(const string& str, size_t* idx = 0, int base = 10); |
4389 |
| -unsigned long long stoull(const string& str, size_t* idx = 0, int base = 10); |
| 4385 | +int stoi(const string& str, size_t* idx = nullptr, int base = 10); |
| 4386 | +long stol(const string& str, size_t* idx = nullptr, int base = 10); |
| 4387 | +unsigned long stoul(const string& str, size_t* idx = nullptr, int base = 10); |
| 4388 | +long long stoll(const string& str, size_t* idx = nullptr, int base = 10); |
| 4389 | +unsigned long long stoull(const string& str, size_t* idx = nullptr, int base = 10); |
4390 | 4390 | \end{itemdecl}
|
4391 | 4391 |
|
4392 | 4392 | \begin{itemdescr}
|
|
4416 | 4416 | \indexlibrary{\idxcode{stod}}%
|
4417 | 4417 | \indexlibrary{\idxcode{stold}}%
|
4418 | 4418 | \begin{itemdecl}
|
4419 |
| -float stof(const string& str, size_t* idx = 0); |
4420 |
| -double stod(const string& str, size_t* idx = 0); |
4421 |
| -long double stold(const string& str, size_t* idx = 0); |
| 4419 | +float stof(const string& str, size_t* idx = nullptr); |
| 4420 | +double stod(const string& str, size_t* idx = nullptr); |
| 4421 | +long double stold(const string& str, size_t* idx = nullptr); |
4422 | 4422 | \end{itemdecl}
|
4423 | 4423 |
|
4424 | 4424 | \begin{itemdescr}
|
|
4479 | 4479 | \indexlibrary{\idxcode{stoll}}%
|
4480 | 4480 | \indexlibrary{\idxcode{stoull}}%
|
4481 | 4481 | \begin{itemdecl}
|
4482 |
| -int stoi(const wstring& str, size_t* idx = 0, int base = 10); |
4483 |
| -long stol(const wstring& str, size_t* idx = 0, int base = 10); |
4484 |
| -unsigned long stoul(const wstring& str, size_t* idx = 0, int base = 10); |
4485 |
| -long long stoll(const wstring& str, size_t* idx = 0, int base = 10); |
4486 |
| -unsigned long long stoull(const wstring& str, size_t* idx = 0, int base = 10); |
| 4482 | +int stoi(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 4483 | +long stol(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 4484 | +unsigned long stoul(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 4485 | +long long stoll(const wstring& str, size_t* idx = nullptr, int base = 10); |
| 4486 | +unsigned long long stoull(const wstring& str, size_t* idx = nullptr, int base = 10); |
4487 | 4487 | \end{itemdecl}
|
4488 | 4488 |
|
4489 | 4489 | \begin{itemdescr}
|
|
4511 | 4511 | \indexlibrary{\idxcode{stod}}%
|
4512 | 4512 | \indexlibrary{\idxcode{stold}}%
|
4513 | 4513 | \begin{itemdecl}
|
4514 |
| -float stof(const wstring& str, size_t* idx = 0); |
4515 |
| -double stod(const wstring& str, size_t* idx = 0); |
4516 |
| -long double stold(const wstring& str, size_t* idx = 0); |
| 4514 | +float stof(const wstring& str, size_t* idx = nullptr); |
| 4515 | +double stod(const wstring& str, size_t* idx = nullptr); |
| 4516 | +long double stold(const wstring& str, size_t* idx = nullptr); |
4517 | 4517 | \end{itemdecl}
|
4518 | 4518 |
|
4519 | 4519 | \begin{itemdescr}
|
|
0 commit comments