...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A forward range of parsed elements.
Defined in header <boost/url/grammar/range_rule.hpp>
template< class T> class range
Name |
Description |
---|---|
A constant, forward iterator to elements of the range. |
|
The type of each element of the range. |
|
The type used to represent signed integers. |
|
Provided for compatibility, unused. |
|
The type of each element of the range. |
|
The type used to represent unsigned integers. |
|
The type of each element of the range. |
Name |
Description |
---|---|
Return an iterator to the beginning. |
|
Return true if the range is empty. |
|
Return an iterator to the end. |
|
Assignment. |
|
range [constructor] |
Constructor. |
Return the number of elements in the range. |
|
Return the matching part of the string. |
|
~range [destructor] |
Destructor. |
Objects of this type are forward ranges returned when parsing using the
range_rule
.
Iteration is performed by re-parsing the underlying character buffer. Ownership
of the buffer is not transferred; the caller is responsible for ensuring
that the lifetime of the buffer extends until it is no longer referenced
by the range.
The implementation may use temporary, recycled storage for type-erasure.
Objects of type range
are
intended to be used ephemerally. That is, for short durations such as within
a function scope. If it is necessary to store the range for a long period
of time or with static storage duration, it is necessary to copy the contents
to an object of a different type.
Type |
Description |
---|---|
|
The value type of the range |
Convenience header <boost/url/grammar.hpp>