removeFlags

remove flags from bit value

removeFlags
(
T
)
(
,
in T[] list...
)
if (
isIntegral!T
)

Examples

1 auto a = 0b01;
2 auto b = 0b10;
3 auto c = 0b11;
4 assertEq( removeFlags(c,a), b );
5 assertEq( removeFlags(c,b), a );
6 assertEq( removeFlags(c,a,b), 0 );

Meta