:relfileprefix: ../../../
[#18748690750F1070863A4B6D6ED2EB35D789B18C]

= Function segments_encoded_base::empty

pass:v,q[Return true if there are no segments]


== Synopsis

Declared in header `</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
pass:v,q[Constant.]

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



== Return Value

* `bool` 




