[#bitset_detail-PopCount] = xref:bitset_detail.adoc[bitset_detail]::PopCount :relfileprefix: ../ :mrdocs: Count the number of bits set in an unsigned integer type. == Synopsis Declared in `<util/bitset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename I> constexpr unsigned int PopCount(I v); ---- == Return Value The number of 1 bits in v. == Parameters [cols="1,4"] |=== | Name| Description | *v* | The integer whose set bits are counted. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#