Parse a string containing an IPv6 address.

Synopsis

Declared in header </boost/url/ipv6_address.hpp#L391[boost/url/ipv6_address.hpp,window=blank_]>

result<ipv6_address>
parse_ipv6_address(string_view s) noexcept;

Description

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.

Exception Safety

Throws nothing.

Return Value

  • result

Parameters

Name Type

s

string_view