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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
params_encoded_ref::buffer

(Inherited from params_encoded_base)

Return the query corresponding to these params.

Synopsis
pct_string_view
buffer() const;
Description

This function returns the query string referenced by the container. The returned string may contain percent escapes.

Example
assert( url_view( "?first=John&last=Doe" ).encoded_params().buffer() == "first=John&last=Doe" );
Complexity

Constant.

Exception Safety

Throws nothing.

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

PrevUpHomeNext