size

Return the number of segments

Synopsis

size_t size() noexcept;

Declared in file <src/segments_encoded_base.cpp> at line 79

Description

Example

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

Complexity

Constant.

Exception Safety

Throws nothing.