:relfileprefix: ../../../ [#boost-urls-pct_string_view-2constructor] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/pct_string_view.adoc[pass:[pct_string_view]]::pct_string_view Constructor === Synopsis [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr xref:boost/urls/pct_string_view/2constructor-00.adoc[pass:[pct_string_view]]() = default; ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr xref:boost/urls/pct_string_view/2constructor-07.adoc[pass:[pct_string_view]](xref:boost/urls/pct_string_view.adoc[pct_string_view] const& other) = default; ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- template< class String, class = void> xref:boost/urls/pct_string_view/2constructor-0c.adoc[pass:[pct_string_view]](String const& s); ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:boost/urls/pct_string_view/2constructor-0f.adoc[pass:[pct_string_view]](std::nullptr_t) = delete; ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:boost/urls/pct_string_view/2constructor-06.adoc[pass:[pct_string_view]]( char const* s, std::size_t len); ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:boost/urls/pct_string_view/2constructor-0d.adoc[pass:[pct_string_view]](core::string_view s); ---- === Description Default constructed string are empty. === Constant. === Throws nothing. === Exceptions |=== | Name | Thrown on | `The` | string contains an invalid percent encoding. |=== === Parameters |=== | Name | Description | *s,* | len The string to construct from. | *s* | The string to construct from. |===