Template Function IntegerOps::msb_set

Template Function IntegerOps::msb_set#

Function Documentation#

template<typename T>
inline std::optional<size_t> IntegerOps::msb_set(T val)#

Optionally returns the zero-origin position of the most significant set bit.

Returns nothing if no bits are set.