SimpleAtoi overloads

Synopses

Declared in <absl/strings/numbers.h>

Overload of SimpleAtoi() for signed 128‐bit integers.

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

Overload of SimpleAtoi() for unsigned 128‐bit integers.

[[nodiscard]]
bool
SimpleAtoi(
    std::string_view str,
    absl::uint128* out);

Converts the given string into an integer value, returning true if successful.

template<typename int_type>
[[nodiscard]]
bool
SimpleAtoi(
    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