:relfileprefix: ../../../ [#boost-urls-segments_base-size] = xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_base.adoc[pass:[segments_base]]::size Return the number of segments == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:std.adoc[std]::size_t size() const noexcept; ---- == Description === Example [,cpp] ---- assert( url_view( "/path/to/file.txt" ).segments().size() == 3 ); ---- === Complexity Constant. === Exception Safety Throws nothing.