Return true if the authority is empty

Synopsis

Declared in header </boost/url/authority_view.hpp#L210[boost/url/authority_view.hpp,window=blank_]>

bool
empty() const noexcept;

Description

An empty authority has an empty host, no userinfo, and no port.

Example

assert( authority_view( "" ).empty() );

Exception Safety

Throws nothing.

Return Value

  • bool