:relfileprefix: ../../../
[#335C78E3457256A4A599F739956C8E65F7A9BDBE]

= Function authority_view::empty

pass:v,q[Return true if the authority is empty]


== Synopsis

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

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

== Description

pass:v,q[An empty authority has an empty host,] pass:v,q[no userinfo, and no port.]

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

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `bool` 




