[#boost-urls-segments_encoded_base-empty] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_base.adoc[segments_encoded_base]::empty :relfileprefix: ../../../ :mrdocs: Return true if there are no segments == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_base.hpp#L218[boost/url/segments_encoded_base.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const noexcept; ---- == Description === Example [,cpp] ---- assert( ! url_view( "/index.htm" ).encoded_segments().empty() ); ---- === Complexity Constant. === Exception Safety Throws nothing. [.small]#Created with https://www.mrdocs.com[MrDocs]#