SimpleHexAtoi overloads
Synopses
Declared in <absl/strings/numbers.h>
Overload of SimpleHexAtoi() for signed 128‐bit integers.
[[nodiscard]]
bool
SimpleHexAtoi(
std::string_view str,
absl::int128* out);
Overload of SimpleHexAtoi() for unsigned 128‐bit integers.
[[nodiscard]]
bool
SimpleHexAtoi(
std::string_view str,
absl::uint128* out);
Converts a hexadecimal string to an integer, returning true if successful.
template<typename int_type>
[[nodiscard]]
bool
SimpleHexAtoi(
std::string_view str,
int_type* out);
Return Value
true on success; otherwise false.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
str |
The string to parse. |
out |
The location that receives the parsed value. |
Created with MrDocs