:relfileprefix: ../../../
[#boost-urls-ipv6_address-2constructor]

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

  


Constructor.



=== Synopsis
  

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
xref:boost/urls/ipv6_address/2constructor-04.adoc[pass:[ipv6_address]]() = default;
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
xref:boost/urls/ipv6_address/2constructor-06.adoc[pass:[ipv6_address]](xref:boost/urls/ipv6_address.adoc[ipv6_address] const&) = default;
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/ipv6_address/2constructor-0f.adoc[pass:[ipv6_address]](xref:boost/urls/ipv6_address/bytes_type.adoc[bytes_type] const& bytes) noexcept;
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/ipv6_address/2constructor-08.adoc[pass:[ipv6_address]](xref:boost/urls/ipv4_address.adoc[ipv4_address] const& addr) noexcept;
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/ipv6_address/2constructor-00.adoc[pass:[ipv6_address]](core::string_view s);
----
  
=== Description


Default constructed objects represent
the unspecified address.

* link:https://datatracker.ietf.org/doc/html/rfc4291#section-2.5.2[2.5.2. The Unspecified Address]


=== Exceptions

|===
| Name | Thrown on

| `The`
| 
input failed to parse correctly.

|===


=== Parameters

|===
| Name | Description 

| *bytes*
| 
The value to construct from.

| *addr*
| 
The address to construct from.

| *s*
| 
The string to parse.

|===



=== See Also


xref:boost/urls/ipv6_address/is_unspecified.adoc[is_unspecified]


