[#boost-urls-ipv4_address-2constructor-00]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/ipv4_address.adoc[ipv4&lowbar;address]::ipv4&lowbar;address
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/ipv4_address.hpp#L106[boost&sol;url&sol;ipv4&lowbar;address&period;hpp]&gt;`

Constructor&period;


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

[.small]#xref:boost/urls/ipv4_address/2constructor-0c.adoc[_» more&period;&period;&period;_]#

Constructor&period;


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

[.small]#xref:boost/urls/ipv4_address/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Construct from a string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:boost/urls/ipv4_address/2constructor-08.adoc[ipv4&lowbar;address](core::string&lowbar;view s);
----

[.small]#xref:boost/urls/ipv4_address/2constructor-08.adoc[_» more&period;&period;&period;_]#

Construct from an unsigned integer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:boost/urls/ipv4_address/2constructor-06.adoc[ipv4&lowbar;address](xref:boost/urls/ipv4_address/uint_type.adoc[uint&lowbar;type] u) noexcept;
----

[.small]#xref:boost/urls/ipv4_address/2constructor-06.adoc[_» more&period;&period;&period;_]#

Construct from an array of bytes&period;


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

[.small]#xref:boost/urls/ipv4_address/2constructor-0b.adoc[_» more&period;&period;&period;_]#

== Exceptions

[cols=2]
|===
| Name
| Thrown on
| `system&lowbar;error`
| The input failed to parse correctly&period;
|===

== Parameters

[cols=2]
|===
| Name
| Description
| *s*
| The string to parse&period;
| *u*
| The integer to construct from&period;
| *bytes*
| The value to construct from&period;
|===

== See Also

xref:boost/urls/parse_ipv4_address.adoc[`parse&lowbar;ipv4&lowbar;address`]&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
