simontoth, C++20 introduced the <bit> header with a group of functions for manipulating and querying bits in unsigned integers.
These functions were previously only available as compiler extensions.
Compiler Explorer link: https://compiler-explorer.com/z/qEWzzcfv9