Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
pct_string_view::pct_string_view (3 of 7 overloads)

Constructor.

Synopsis
template<
    class String>
pct_string_view(
    String const& s);
Description

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

Postconditions
this->data() == string_view(s).data()
Complexity

Linear in string_view(s).size().

Exception Safety

Exceptions thrown on invalid input.

Exceptions

Type

Thrown On

system_error

The string contains an invalid percent encoding.

Template Parameters

Type

Description

String

A type convertible to string_view

Parameters

Name

Description

s

The string to construct from.


PrevUpHomeNext