absl::SimpleHexAtoi

Overload of SimpleHexAtoi() for signed 128-bit integers.

Synopsis

Declared in <absl/strings/numbers.h>

[[nodiscard]]
bool
SimpleHexAtoi(
    std::string_view str,
    absl::int128* out);

Return Value

true on success; otherwise false.

NOTE

The return value should not be discarded.

Parameters

NameDescription
strThe string to parse.
outThe location that receives the parsed value.