boost::urls::segments_base

Decoded path segment helper base

Synopsis

Declared in <boost/url/segments_base.hpp>
class segments_base;

Description

Provides the shared decoded path-segment algorithms (iteration, lookup, comparison) used by segments_view and segments_ref. This base cannot be instantiated directly; instead, use one of the concrete containers below.

Containers

Types

NameDescription
iterator A Bidirectional iterator to a path segment
const_iterator A Bidirectional iterator to a path segment
const_reference The reference type
difference_type A signed integer type used to represent differences.
reference The reference type
size_type An unsigned integer type used to represent size.
value_type The value type

Member Functions

NameDescription
back Return the last segment
begin Return an iterator to the beginning
buffer Return the referenced character buffer.
empty Return true if there are no segments
end Return an iterator to the end
front Return the first segment
is_absolute Returns true if this references an absolute path.
size Return the number of segments

Static Member Functions

NameDescription
max_size Return the maximum number of characters possible

Friends

|===
Name Description
segments_view Non-owning decoded path segment view
segments_ref Mutable decoded path segment proxy
url_view_base Common functionality for containers

Derived Classes

Name Description
segments_ref Mutable decoded path segment proxy
segments_view Non-owning decoded path segment view