size

Return the number of segments

Synopsis

size_t size() noexcept;

Declared in file <src/segments_base.cpp> at line 83

Description

Example

assert( url_view( "/path/to/file.txt" ).segments().size() == 3 );

Complexity

Constant.

Exception Safety

Throws nothing.