I want to check if a mask does not contain a flag. I've been writing it like this:
!(mask & flag)
But sometimes, the code gets a bit messy with all the parentheses. Is there a better way to write this? Something more concise?
I want to check if a mask does not contain a flag. I've been writing it like this:
!(mask & flag)
But sometimes, the code gets a bit messy with all the parentheses. Is there a better way to write this? Something more concise?