[#boost-urls-authority_view-empty]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/authority_view.adoc[authority&lowbar;view]::empty
:relfileprefix: ../../../
:mrdocs:

Return true if the authority is empty

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L256[boost&sol;url&sol;authority&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
empty() const noexcept;
----

== Description

An empty authority has an empty host, no userinfo, and no port&period;

== Example

[,cpp]
----
assert( authority_view( "" ).empty() );
----
== Exception Safety

Throws nothing&period;

== Return Value

`true` if the authority is empty


[.small]#Created with https://www.mrdocs.com[MrDocs]#
