Constructor
<include/boost/url/static_url.hpp>
static_url() noexcept;
» more...
explicit
static_url(core::string_view s);
» more...
static_url(static_url const& u) noexcept;
» more...
static_url(url_view_base const& u);
» more...
Default constructed urls contain a zero-length string. This matches the grammar for a relative-ref with an empty path and no query or fragment.
static_url< 1024 > u;
this->empty() == true
relative-ref = relative-part [ "?" query ] [ "#" fragment ]
Name | Thrown on |
---|---|
[object Object] |
input does not contain a valid url. |
[object Object] |
would be exceeded. |
Name | Description |
---|---|
s | The string to parse. |
u | The url to copy. |