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

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;

== Synopsis

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

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

== Return Value

`true` if `input` was successfully parsed into `&ast;dst`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *input*
| The string to parse&period;
| *dst*
| The destination to store the parsed value in&period;
| *error*
| Set to an error message when parsing fails&period;
|===


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