Return a value of type T with the n most significant bits set.
Declared in <folly/lang/Bits.h>
template<class T>
[[nodiscard]]
constexpr
T
n_most_significant_bits(uint32_t n);
This function is defined as an Algorithm Function Object (AFO).
A value with n most significant bits set and the rest cleared.
The return value should not be discarded.
| Name | Description |
|---|---|
| n | The number of high bits to set. |