[#absl-ParseFlag-03]
= xref:absl.adoc[absl]::ParseFlag
:relfileprefix: ../
:mrdocs:

`ParseFlag` overloads

== Synopses

Declared in `&lt;absl&sol;flags&sol;marshalling&period;h&gt;`

Deprecated&period; Use `AbslParseFlag()` instead&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated(&quot;Use AbslParseFlag() instead&period;&quot;)&rsqb;&rsqb;
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&period;&period;&period;_]#

Parses a string value into a flag value of type `T`&period; Do not add overloads of this function for your type directly&semi; instead, add an `AbslParseFlag()` free function as documented above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
bool
xref:absl/ParseFlag-09.adoc[ParseFlag](
    std::string&lowbar;view input,
    T* dst,
    std::string* error);
----

[.small]#xref:absl/ParseFlag-09.adoc[_» more&period;&period;&period;_]#

== Return Value

* `true` upon successful parsing&period;
* `true` if `input` was successfully parsed into `&ast;dst`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *text*
| The flag string to parse&period;
| *dst*
| Output parameter receiving the parsed duration&period;
| *error*
| Output parameter receiving an error message on failure&period;
| *input*
| The string to parse&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
