:relfileprefix: ../../../
[#boost-urls-params_base-size]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/params_base.adoc[pass:[params_base]]::size


Return the number of params


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_base.hpp#L207[boost/url/params_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:std.adoc[std]::size_t
size() const noexcept;
----

== Description


=== Example
[,cpp]
----
assert( url_view( "?key=value").params().size() == 1 );
----

=== Complexity

Constant.

=== Exception Safety

Throws nothing.








