Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
url_view::url_view (1 of 5 overloads)

Constructor.

Synopsis
url_view();
Description

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.

Example
[link url.ref.boost__urls__url_view.url_view `url_view`] u;
Postconditions
this->[link url.ref.boost__urls__url_view.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_view.query `query`] ] [ "#" [link url.ref.boost__urls__url_view.fragment `fragment`] ]
Specification

4.2. Relative Reference (rfc3986)


PrevUpHomeNext