ParseFlag overloads
Synopses
Declared in <absl/flags/marshalling.h>
Deprecated. Use AbslParseFlag() instead.
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.
template<typename T>
bool
ParseFlag(
std::string_view input,
T* dst,
std::string* error);
Return Value
-
trueupon successful parsing. -
trueifinputwas successfully parsed into*dst.
Parameters
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. |
Created with MrDocs