Skip to content

Glossary: Algorithms Beyond the Basics in C++

popcount

Also written: std::popcount

A C++20 function from `<bit>` that counts the 1 bits in an unsigned number, telling how many options an order has.

Where the book teaches it

Related terms

bitmask