[#boost-urls-pct_string_view-2constructor-01]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/pct_string_view.adoc[pct&lowbar;string&lowbar;view]::pct&lowbar;string&lowbar;view
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:boost/urls/pct_string_view/2constructor-00.adoc[pct&lowbar;string&lowbar;view]() = default;
----

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

Constructor


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

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

Constructor (deleted)


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/pct_string_view/2constructor-0f.adoc[pct&lowbar;string&lowbar;view](std::nullptr&lowbar;t value) = delete;
----

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

Constructor


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

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::convertible&lowbar;to&lt;core::string&lowbar;view&gt; String&gt;
requires std&colon;&colon;is&lowbar;convertible&lt;
                String,
                core&colon;&colon;string&lowbar;view
                    &gt;&colon;&colon;value
constexpr
xref:boost/urls/pct_string_view/2constructor-0c.adoc[pct&lowbar;string&lowbar;view](String const& s);
----

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

Constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/pct_string_view/2constructor-06.adoc[pct&lowbar;string&lowbar;view](
    char const* s,
    std::size&lowbar;t len);
----

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

== Exceptions

[cols="1,4"]
|===
| Name
| Thrown on
| `system&lowbar;error`
| The string contains an invalid percent encoding&period;
|===

== Template Parameters

[cols="1,4"]
|===
|Name|Description

| *String*
| A type convertible to `core&colon;&colon;string&lowbar;view`
|===

== Parameters

[cols="1,4"]
|===
|Name|Description

| *other*
| The string to copy&period;
| *s*
| The string to construct from&period;
| *len*
| The length of the string&period;
|===


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