Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit e70692e4d8.
PrevUpHomeNext
params_encoded_ref::reference

(Inherited from params_encoded_base)

The reference type.

Synopsis
using reference = param_pct_view;
Member Functions

Name

Description

operator param

Conversion.

operator param_view

param_pct_view

Constructor.

Construction.

Data Members

Name

Description

has_value

True if a value is present.

key

The key.

param_pct_view

Constructor.

value

The value.

Objects of this type represent a single key and value pair in a query string where a key is always present and may be empty, while the presence of a value is indicated by has_value equal to true. An empty value is distinct from no value. The strings may have percent escapes, and offer an additional invariant: they never contain an invalid percent-encoding. For most usages, key comparisons are case-sensitive and duplicate keys in a query are possible. However, it is the authority that has final control over how the query is interpreted.

Keys and values in this object reference external character buffers. Ownership of the buffers is not transferred; the caller is responsible for ensuring that the assigned buffers remain valid until they are no longer referenced.

BNF
query-params    = query-param *( "&" query-param )
query-param     = key [ "=" value ]
key             = *qpchar
value           = *( qpchar / "=" )
Specification
See Also

param, param_view.

Description

This is the type of value returned when iterators of the view are dereferenced.

See Also

param_view.


PrevUpHomeNext