hasFlags

checks flags in bit value

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

Examples

1 auto a = 0b001;
2 auto b = 0b010;
3 auto c = 0b100;
4 auto d = 0b111;
5 assert( hasFlags(d,a,b,c) );

Meta