boost::urls::pct_string_view::pct_string_view

Constructor

Synopsis

constexpr
pct_string_view() = default;
constexpr
pct_string_view(pct_string_view const& other) = default;
template<
    std::convertible_to<core::string_view> String,
    class = void>
constexpr
pct_string_view(String const& s);
pct_string_view(std::nullptr_t) = delete;
pct_string_view(
    char const* s,
    std::size_t len);
pct_string_view(core::string_view s);

Description

Default constructed string are empty.

Complexity

Constant.

Exception Safety

Throws nothing.

Exceptions

Name Thrown on

system_error

The string contains an invalid percent encoding.

Template Parameters

Name Description

String

A type convertible to core::string_view

Parameters

Name Description

s

The string to construct from.

len

The length of the string.

Created with MrDocs