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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
pct_string_view::pct_string_view (5 of 6 overloads)

Constructor.

Synopsis
pct_string_view(
    char const* s,
    std::size_t len);
Description

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

Postconditions
this->data() == s && this->size() == len
Complexity

Linear in len.

Exception Safety

Exceptions thrown on invalid input.

Exceptions

Type

Thrown On

system_error

The string contains an invalid percent encoding.

Parameters

Name

Description

s, len

The string to construct from.


PrevUpHomeNext