Parse a string containing an IPv6 address.
<include/boost/url/ipv6_address.hpp>
system::result<ipv6_address>
parse_ipv6_address(core::string_view s) noexcept;
This function attempts to parse the string as an IPv6 address and returns a result containing the address upon success, or an error code if the string does not contain a valid IPv6 address.
A result containing the address.
Name | Description |
---|---|
s | The string to parse. |