[#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 `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url.hpp#L120[boost/url/url.hpp]>` 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..._]# 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..._]# 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..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:boost/urls/url/2constructor-002.adoc[url](core::string_view s); ---- [.small]#xref:boost/urls/url/2constructor-002.adoc[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/url/2constructor-001.adoc[url](xref:boost/urls/url_view_base.adoc[url_view_base] const& u); ---- [.small]#xref:boost/urls/url/2constructor-001.adoc[_» more..._]# == Exceptions [cols=2] |=== | Name | Thrown on | `std::length_error` | `u.size() > max_size()`. | `system_error` | The input does not contain a valid url. |=== == Parameters [cols=2] |=== | Name | Description | *u* | The url to copy. | *s* | The string to parse. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#