Read the bit at position idx from an array of unsigned integers.
Declared in <folly/lang/Bits.h>
template<typename Uint>
[[nodiscard]]
constexpr
bool
get_bit_at(
Uint const* ptr,
std::size_t idx) noexcept;
This function is defined as an Algorithm Function Object (AFO).
| Name | Description |
|---|---|
| ptr | Pointer to the first element of the array. |
| idx | The bit index, counting the lowest bits of each element first. |