Return true if there are no segments

Synopsis

Declared in header </boost/url/segments_base.hpp#L192[boost/url/segments_base.hpp,window=blank_]>

bool
empty() const noexcept;

Description

Example

assert( ! url_view( "/index.htm" ).segments().empty() );

Complexity

Constant.

Exception Safety

Throws nothing.

Return Value

  • bool