bt

Tests the bit. (No longer an intrisic - the compiler recognizes the patterns in the body.)

nothrow @safe @nogc pure @system
int
bt
(
const scope size_t* p
,
size_t bitnum
)

Examples

size_t[2] array;

array[0] = 2;
array[1] = 0x100;

assert(bt(array.ptr, 1));
assert(array[0] == 2);
assert(array[1] == 0x100);

Meta