boost::urls::params_view
Non‐owning decoded query parameter view
Synopsis
Declared in <boost/url/params_view.hpp>
class params_view
: public params_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 referenced character buffer. |
|
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 |
Friends
| Name | Description |
|---|---|
Mutable decoded query parameter proxy |
|
Non‐owning encoded query parameter view |
|
Common functionality for containers |
Description
This read‐only range interprets the query string of a URL as bidirectional key/value pairs with percent‐decoding applied on access. It merely references the original character buffer; callers must keep that buffer alive while the view is used.
Example
url_view u( "?first=John&last=Doe" );
params_view p = u.params();
Strings retrieved from the iterators are automatically percent‐decoded.
Iterator Invalidation
Changes to the underlying character buffer can invalidate iterators which reference it.
Created with MrDocs