:relfileprefix: ../../../ [#boost-urls-pct_string_view-2constructor-0d] = 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 Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- pct_string_view(core::string_view s); ---- == Description The newly constructed string references the specified character buffer. Ownership is not transferred. === Postconditions [,cpp] ---- this->data() == s.data() && this->size() == s.size() ---- === Complexity Linear in `s.size()`. === Exception Safety Exceptions thrown on invalid input. == Exceptions |=== | Name | Thrown on | `system_error` | The string contains an invalid percent encoding. |=== == Parameters |=== | Name | Description | *s* | The string to construct from. |===