[#absl-from_chars-06] = xref:absl.adoc[absl]::from_chars :relfileprefix: ../ :mrdocs: `from_chars` overloads == Synopses Declared in `<absl/strings/charconv.h>` Workalike compatibility version of std::from_chars from C++17. Currently this only supports the `double` and `float` types. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/from_chars_result.adoc[absl::from_chars_result] xref:absl/from_chars-0b.adoc[from_chars]( char const* first, char const* last, double& value, xref:absl/chars_format.adoc[chars_format] fmt = chars_format::general); ---- [.small]#xref:absl/from_chars-0b.adoc[_» more..._]# Workalike compatibility version of std::from_chars from C++17 for `float`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/from_chars_result.adoc[absl::from_chars_result] xref:absl/from_chars-01.adoc[from_chars]( char const* first, char const* last, float& value, xref:absl/chars_format.adoc[chars_format] fmt = chars_format::general); ---- [.small]#xref:absl/from_chars-01.adoc[_» more..._]# == Return Value A from_chars_result describing where parsing stopped and any error. == Parameters [cols="1,4"] |=== | Name| Description | *first* | Pointer to the first character of the input range. | *last* | Pointer to one past the last character of the input range. | *value* | Set to the parsed number when a match is found. | *fmt* | The floating‐point format to accept. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#