You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 82073b7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/standard-library/charconv-functions.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,12 @@ The \<charconv> header includes the following non-member functions:
10
10
11
11
|**Non-member functions**|**Description**|
12
12
|-|-|
13
-
|[to_chars](#to_chars)| Convert an integer or floating point type to a sequence of `char`. |
14
-
|[from_chars](#from_chars)| Convert a sequence of `char` to an integer or floating point type. |
13
+
|[to_chars](#to_chars)| Convert an integer or floating point value to a sequence of `char`. |
14
+
|[from_chars](#from_chars)| Convert a sequence of `char` to an integer or floating point value. |
15
15
16
16
## `to_chars`
17
17
18
-
Convert an integer or floating point type value to a sequence of `char`.
18
+
Convert an integer or floating point value to a sequence of `char`.
19
19
20
20
Converts `value` into a character string by filling the range \[first, last), where \[first, last) must be a valid range.
21
21
If the conversion is successful, as indicated by `to_char_result.ec`, the member ptr is the one-past-the-end pointer of the characters written. Otherwise, `to_char_result.ec` has the value `errc::value_too_large`, `to_char_result.ptr` has the value `last`, and the contents of the range
@@ -125,10 +125,10 @@ int main()
125
125
126
126
## `from_chars`
127
127
128
-
Convert a sequence of `char` to an integer or floating point type.
128
+
Convert a sequence of `char` to an integer or floating point value.
129
129
130
130
```cpp
131
-
// char to an integer type
131
+
// char to an integer value
132
132
133
133
inline from_chars_result from_chars(const char* const first, const char* const last, char& value, const int base = 10)
134
134
inline from_chars_result from_chars(const char* const first, const char* const last, signed char& value,const int base = 10)
0 commit comments