Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
url::url (1 of 5 overloads)

Constructor.

Synopsis
url();
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.

Example
[link url.ref.boost__urls__url.url `url`] u;
Postconditions
this->[link url.ref.boost__urls__url.empty `empty`]() == true
Complexity

Constant.

Exception Safety

Throws nothing.

BNF
relative-[link url.ref.boost__urls__grammar__ref `ref`]  = relative-part [ "?" [link url.ref.boost__urls__url.query `query`] ] [ "#" [link url.ref.boost__urls__url.fragment `fragment`] ]
Specification

4.2. Relative Reference (rfc3986)


PrevUpHomeNext