From Jason Turner

[string.conversions]

Diff to HTML by rtfpessoa

tmp/tmpr3wx6zd9/{from.md → to.md} RENAMED
@@ -20,11 +20,12 @@ unconverted element of `str`.
20
 
21
  *Returns:* The converted result.
22
 
23
  *Throws:* `invalid_argument` if `strtol`, `strtoul`, `strtoll`, or
24
  `strtoull` reports that no conversion could be performed. Throws
25
- `out_of_range` if the converted value is outside the range of
 
26
  representable values for the return type.
27
 
28
  ``` cpp
29
  float stof(const string& str, size_t* idx = 0);
30
  double stod(const string& str, size_t* idx = 0);
@@ -41,11 +42,12 @@ unconverted element of `str`.
41
 
42
  *Returns:* The converted result.
43
 
44
  *Throws:* `invalid_argument` if `strtod` or `strtold` reports that no
45
  conversion could be performed. Throws `out_of_range` if `strtod` or
46
- `strtold` sets `errno` to `ERANGE`.
 
47
 
48
  ``` cpp
49
  string to_string(int val);
50
  string to_string(unsigned val);
51
  string to_string(long val);
 
20
 
21
  *Returns:* The converted result.
22
 
23
  *Throws:* `invalid_argument` if `strtol`, `strtoul`, `strtoll`, or
24
  `strtoull` reports that no conversion could be performed. Throws
25
+ `out_of_range` if `strtol`, `strtoul`, `strtoll` or `strtoull` sets
26
+ `errno` to `ERANGE`, or if the converted value is outside the range of
27
  representable values for the return type.
28
 
29
  ``` cpp
30
  float stof(const string& str, size_t* idx = 0);
31
  double stod(const string& str, size_t* idx = 0);
 
42
 
43
  *Returns:* The converted result.
44
 
45
  *Throws:* `invalid_argument` if `strtod` or `strtold` reports that no
46
  conversion could be performed. Throws `out_of_range` if `strtod` or
47
+ `strtold` sets `errno` to `ERANGE` or if the converted value is outside
48
+ the range of representable values for the return type.
49
 
50
  ``` cpp
51
  string to_string(int val);
52
  string to_string(unsigned val);
53
  string to_string(long val);