<boost/url/pct_string_view.hpp>
template<std::convertible_to<core::string_view> String>
requires std::is_convertible<
String,
core::string_view
>::value
constexpr
pct_string_view(String const& s);
The newly constructed string references the specified character buffer. Ownership is not transferred.
this->data() == core::string_view(s).data()
Linear in core::string_view(s).size()
.
Exceptions thrown on invalid input.
Name | Thrown on |
---|---|
system_error |
The string contains an invalid percent encoding. |
Name | Description |
---|---|
String | A type convertible to core::string_view |
Name | Description |
---|---|
s | The string to construct from. |