:relfileprefix: ../../../
[#boost-urls-segments_encoded_base-empty]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_encoded_base.adoc[pass:[segments_encoded_base]]::empty


Return true if there are no segments


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_base.hpp#L195[boost/url/segments_encoded_base.hpp,window=blank_]>`

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

== Description


=== Example
[,cpp]
----
assert( ! url_view( "/index.htm" ).encoded_segments().empty() );
----

=== Complexity

Constant.

=== Exception Safety

Throws nothing.








