[#boost-urls-authority_view-empty] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/authority_view.adoc[authority_view]::empty :relfileprefix: ../../../ :mrdocs: Return true if the authority is empty == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L210[boost/url/authority_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const noexcept; ---- == Description An empty authority has an empty host, no userinfo, and no port. === Example [,cpp] ---- assert( authority_view( "" ).empty() ); ---- === Exception Safety Throws nothing. [.small]#Created with https://www.mrdocs.com[MrDocs]#