Rose::BitOps::position
Generate a single‐bit mask.
Synopsis
Declared in <src/Rose/BitOps.h>
template<typename Unsigned>
Unsigned
position(size_t i);
Description
Returns a value that has all bit cleared except the bit at position i. If i is outside the valid range of bit positions for the unsigned type, then zero is returned.
Return Value
Single‐bit mask.
Parameters
Name |
Description |
i |
Bit index to set. |
Created with MrDocs