param_pct_view

A query parameter

Synopsis

struct param_pct_view ;

Declared in file <boost/url/param.hpp> at line 638

Member Functions

Name Description
param_pct_view

Constructor

param_pct_view

Constructor

param_pct_view

Constructor

param_pct_view

Construction

operator param

Conversion

operator param_view
operator->
param_pct_view

Data Members

Name Description
key

The key

value

The value

has_value

True if a value is present

Description

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

  • Query string (Wikipedia)