boost::urls::params_encoded_view
Non‐owning encoded query parameter view
Synopsis
class params_encoded_view
: public params_encoded_base
Types
Name |
Description |
A Bidirectional iterator to a query parameter |
|
A Bidirectional iterator to a query parameter |
|
The reference type |
|
A signed integer type used to represent differences. |
|
The reference type |
|
An unsigned integer type to represent sizes. |
|
The value type |
Member Functions
Name |
Description |
|
Constructor |
Assignment |
|
Return an iterator to the beginning |
|
Return the query corresponding to these params |
|
Return true if a matching key exists |
|
Return the number of matching keys |
|
Return true if there are no params |
|
Return an iterator to the end |
|
Find a matching key |
|
Find a matching key |
|
Return the value for a key or a fallback |
|
Return the number of params |
|
Conversion |
Friends
| Name | Description |
|---|---|
Parse a string and return an encoded params view |
|
Mutable encoded query parameter proxy |
|
Non‐owning decoded query parameter view |
|
Common functionality for containers |
Description
This read‐only range exposes the raw percent‐encoded key/value pairs stored in a query string. It does not copy the underlying buffer; callers must ensure the referenced character storage outlives the view.
Example
url_view u( "?first=John&last=Doe" );
params_encoded_view p = u.encoded_params();
Iteration yields param_pct_view values, so encoded strings and escape validation are preserved for callers that want exact bytes.
Iterator Invalidation
Changes to the underlying character buffer can invalidate iterators which reference it.
Created with MrDocs