[#boost-urls-segments_base-empty]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_base.adoc[segments&lowbar;base]::empty
:relfileprefix: ../../../
:mrdocs:


Return true if there are no segments

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_base.hpp#L212[boost&sol;url&sol;segments&lowbar;base&period;hpp]&gt;`

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

== Description



=== Example

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

=== Complexity

Constant&period;


=== Exception Safety

Throws nothing&period;





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