[#E7247B6ED2F3D8AF8D2C7167CDF5CCC86B2AD9FA]

Function url_view_base:: empty

Return true if the url is empty

Synopsis

            bool
empty() const noexcept;
        

Description

The empty string matches the relative-ref grammar.

Example

assert( url_view( "" ).empty() );

Complexity

Constant.

Exception Safety

Throws nothing.

BNF

relative-ref = relative-part [ "?" query ] [ "#" fragment ] relative-part = "//" authority path-abempty / path-absolute / path-noscheme / path-empty

Specification

  • 4.2. Relative Reference (rfc3986)