boost::corosio::parse_ipv6_address

Parse a string containing an IPv6 address.

Synopsis

[[nodiscard]]
std::error_code
parse_ipv6_address(
    std::string_view s,
    ipv6_address& addr) noexcept;

Description

This function attempts to parse the string as an IPv6 address and returns an error code if the string does not contain a valid IPv6 address.

Exception Safety

Throws nothing.

Return Value

An error code (empty on success).

Parameters

Name Description

s

The string to parse.

addr

The address to store the result.

Created with MrDocs