[#bitset_detail-PopCount]
= xref:bitset_detail.adoc[bitset&lowbar;detail]::PopCount
:relfileprefix: ../
:mrdocs:

Count the number of bits set in an unsigned integer type&period;

== Synopsis

Declared in `&lt;util&sol;bitset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename I&gt;
constexpr
unsigned int
PopCount(I v);
----

== Return Value

The number of 1 bits in v&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The integer whose set bits are counted&period;
|===


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