Constructor

Synopsis

Declared in header </boost/url/pct_string_view.hpp#L241[boost/url/pct_string_view.hpp,window=blank_]>

pct_string_view(string_view s);

Description

The newly constructed string references the specified character buffer. Ownership is not transferred.

Postconditions

this->data() == s.data() && this->size() == s.size()

Complexity

Linear in s.size().

Exception Safety

Exceptions thrown on invalid input.

Return Value

  • void

Parameters

Name Type

s

string_view