:relfileprefix: ../../../
[#boost-urls-segments_encoded_base-size]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_encoded_base.adoc[pass:[segments_encoded_base]]::size


Return the number of segments


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_base.hpp#L235[boost/url/segments_encoded_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
std::size_t
size() const noexcept;
----

=== Description

[,cpp]
----
assert( url_view( "/path/to/file.txt" ).encoded_segments().size() == 3 );
----

=== Constant.

=== Throws nothing.








