boost::urls::static_url::static_url

Constructor

Synopsis

static_url() noexcept;
cpp
explicit
static_url(core::string_view s);
cpp
static_url(static_url const& u) noexcept;
cpp
static_url(url_view_base const& u);
cpp

Description

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;
cpp
this->empty() == true
cpp

Complexity

Constant.

Exception Safety

Throws nothing.

relative-ref  = relative-part [ "?" query ] [ "#" fragment ]
cpp

Exceptions

Name Thrown on

system_error

The input does not contain a valid url.

Parameters

Name Description

s

The string to parse.

u

The url to copy.

Created with MrDocs