:relfileprefix: ../../
[#boost-urls-parse_ipv6_address]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::parse_ipv6_address


Parse a string containing an IPv6 address.


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/ipv6_address.hpp#L402[boost/url/ipv6_address.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
system::result<xref:boost/urls/ipv6_address.adoc[ipv6_address]>
parse_ipv6_address(core::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.

=== Throws nothing.




=== Return Value


A result containing the address.



=== Parameters

|===
| Name | Description 

| *s*
| 
The string to parse.

|===




