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.
Glossary: Algorithms Beyond the Basics in C++
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.