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