Constructor
<include/boost/url/url_view.hpp>
url_view() noexcept;
» more...
url_view(core::string_view s);
» more...
template<
class String,
class = void>
url_view(String const& s);
» more...
url_view(url_view const& other) noexcept;
» more...
url_view(url_view_base const& other) noexcept;
» more...
Default constructed views refer to a string with zero length, which always remains valid. This matches the grammar for a relative-ref with an empty path and no query or fragment.
url_view u;
this->empty() == true
relative-ref = relative-part [ "?" query ] [ "#" fragment ]
Name | Thrown on |
---|---|
[object Object] |
input failed to parse correctly. |
Name | Description |
---|---|
s | The string to parse. |