Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
template< class String> pct_string_view( String const& s);
The newly constructed string references the specified character buffer. Ownership is not transferred.
this->data() == string_view(s).data()
Linear in string_view(s).size().
Exceptions thrown on invalid input.
|
Type |
Thrown On |
|---|---|
|
|
The string contains an invalid percent encoding. |
|
Type |
Description |
|---|---|
|
|
A type convertible to |
|
Name |
Description |
|---|---|
|
|
The string to construct from. |