[#absl-ParseFlag-03] = xref:absl.adoc[absl]::ParseFlag :relfileprefix: ../ :mrdocs: `ParseFlag` overloads == Synopses Declared in `<absl/flags/marshalling.h>` Deprecated. Use `AbslParseFlag()` instead. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use AbslParseFlag() instead.")]] bool xref:absl/ParseFlag-05.adoc[ParseFlag]( std::string const& text, xref:absl/Duration.adoc[Duration]* dst, std::string* error); ---- [.small]#xref:absl/ParseFlag-05.adoc[_» more..._]# Parses a string value into a flag value of type `T`. Do not add overloads of this function for your type directly; instead, add an `AbslParseFlag()` free function as documented above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> bool xref:absl/ParseFlag-09.adoc[ParseFlag]( std::string_view input, T* dst, std::string* error); ---- [.small]#xref:absl/ParseFlag-09.adoc[_» more..._]# == Return Value * `true` upon successful parsing. * `true` if `input` was successfully parsed into `*dst`. == Parameters [cols="1,4"] |=== | Name| Description | *text* | The flag string to parse. | *dst* | Output parameter receiving the parsed duration. | *error* | Output parameter receiving an error message on failure. | *input* | The string to parse. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#