...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
(Inherited from segments_base
)
Return the number of segments.
std::size_t size() const;
assert( url_view( "/path/to/file.txt" ).segments().size() == 3 );
Constant.
Throws nothing.