[#boost-urls-url-2constructor-0a]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url.adoc[url]::url
:relfileprefix: ../../../
:mrdocs:

Constructor

== Synopses

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/url/2constructor-0f0.adoc[url]() noexcept;
----

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/url/2constructor-0f7.adoc[url](xref:boost/urls/url.adoc[url] const& u);
----

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/url/2constructor-01.adoc[url](xref:boost/urls/url.adoc[url]&& u) noexcept;
----

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

Constructor


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

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/url/2constructor-001.adoc[url](xref:boost/urls/url_view_base.adoc[url&lowbar;view&lowbar;base] const& u);
----

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

== Exceptions

[cols=2]
|===
| Name
| Thrown on
| `std&colon;&colon;length&lowbar;error`
| `u&period;size() &gt; max&lowbar;size()`&period;
| `system&lowbar;error`
| The input does not contain a valid url&period;
|===

== Parameters

[cols=2]
|===
| Name
| Description
| *u*
| The url to copy&period;
| *s*
| The string to parse&period;
|===


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