absl::ParseFlag

Deprecated. Use AbslParseFlag() instead.

Synopsis

Declared in <absl/time/time.h>

[[deprecated("Use AbslParseFlag() instead.")]]
bool
ParseFlag(
    std::string const& text,
    Duration* dst,
    std::string* error);

WARNING

Deprecated: Use AbslParseFlag() instead.. Use of this entity is allowed but discouraged.

Return Value

true upon successful parsing.

Parameters

NameDescription
textThe flag string to parse.
dstOutput parameter receiving the parsed duration.
errorOutput parameter receiving an error message on failure.