[#absl-AbslParseFlag-00]
= xref:absl.adoc[absl]::AbslParseFlag
:relfileprefix: ../
:mrdocs:

`AbslParseFlag` overloads

== Synopses

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

Parses a command&hyphen;line flag string representation `text` into a Duration value&period; Duration flags must be specified in a format that is valid input for `absl&colon;&colon;ParseDuration()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:absl/AbslParseFlag-03.adoc[AbslParseFlag](
    std::string&lowbar;view text,
    xref:absl/Duration.adoc[Duration]* dst,
    std::string* error);
----

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

Parses an `absl&colon;&colon;LogSeverity` flag value&period; See `base&sol;log&lowbar;severity&period;h` for the full documentation&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:absl/AbslParseFlag-05.adoc[AbslParseFlag](
    std::string&lowbar;view text,
    xref:absl/LogSeverity.adoc[absl::LogSeverity]* dst,
    std::string* err);
----

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

Parses the command&hyphen;line flag string representation `text` into a Time value&period; Time flags must be specified in a format that matches absl&colon;&colon;RFC3339&lowbar;full&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:absl/AbslParseFlag-06.adoc[AbslParseFlag](
    std::string&lowbar;view text,
    xref:absl/Time.adoc[Time]* t,
    std::string* error);
----

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

== Return Value

* `true` upon successful parsing&period;
* `true` if the value was successfully parsed&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;
| *err*
| Output parameter that receives an error message on failure&period;
| *t*
| Output parameter receiving the parsed time&period;
|===


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