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

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

  


Constructor.



=== Synopsis
  

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

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
explicit
xref:boost/urls/ipv4_address/2constructor-06.adoc[pass:[ipv4_address]](xref:boost/urls/ipv4_address/uint_type.adoc[uint_type] u) noexcept;
----

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

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

=== Exceptions

|===
| Name | Thrown on

| `The`
| 
input failed to parse correctly.

|===


=== Parameters

|===
| Name | Description 

| *u*
| 
The integer to construct from.

| *bytes*
| 
The value to construct from.

| *s*
| 
The string to parse.

|===




