[#boost-urls-params_encoded_base-buffer]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/params_encoded_base.adoc[params&lowbar;encoded&lowbar;base]::buffer
:relfileprefix: ../../../
:mrdocs:

Return the query corresponding to these params

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_encoded_base.hpp#L177[boost&sol;url&sol;params&lowbar;encoded&lowbar;base&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/pct_string_view.adoc[pct&lowbar;string&lowbar;view]
buffer() const noexcept;
----

== Description

This function returns the query string referenced by the container&period; The returned string may contain percent escapes&period;

== Example

[,cpp]
----
assert( url_view( "?first=John&last=Doe" ).encoded_params().buffer() == "first=John&last=Doe" );
----
== Complexity

Constant&period;

== Exception Safety

Throws nothing&period;

== BNF

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

* https://en.wikipedia.org/wiki/Query_string[Query string (Wikipedia)]

== Return Value

The query string&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
