[#boost-urls-url_view-2constructor-0c2]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_view.adoc[url&lowbar;view]::url&lowbar;view
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:boost/urls/url_view/2constructor-0cb.adoc[url&lowbar;view]() noexcept = default;
----

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:boost/urls/url_view/2constructor-024.adoc[url&lowbar;view](xref:boost/urls/url_view.adoc[url&lowbar;view] const& other) noexcept = default;
----

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

Move constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:boost/urls/url_view/2constructor-08.adoc[url&lowbar;view](xref:boost/urls/url_view.adoc[url&lowbar;view]&& other) noexcept = default;
----

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

Constructor


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

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

Constructor


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

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class String&gt;
requires std&colon;&colon;is&lowbar;convertible&lt;
                String,
                core&colon;&colon;string&lowbar;view
                    &gt;&colon;&colon;value &amp;&amp;
            !std&colon;&colon;is&lowbar;convertible&lt;
                String&ast;,
                url&lowbar;view&lowbar;base&ast;
                    &gt;&colon;&colon;value
xref:boost/urls/url_view/2constructor-00.adoc[url&lowbar;view](String const& s);
----

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

== Exceptions

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The other view&period;
| *s*
| The string to parse&period;
|===

== See Also

xref:boost/urls/parse_uri_reference.adoc[`parse&lowbar;uri&lowbar;reference`]&period;

xref:boost/urls/parse_uri_reference.adoc[`parse&lowbar;uri&lowbar;reference`]&period;


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