I was going through some VC++ code in a large code-base and came across this:
    if (nState & TOOL_TIPS_VISIBLE)
        nState &= ~TOOL_TIPS_VISIBLE;
    else
        nState |= TOOL_TIPS_VISIBLE;
    break;
Is there any such operator as &= or |= in C++? What is it for?
Is it the equivalent of nState = nState & ~TOOL_TIPS_VISIBLE?
x &= y  is the same as  x = x & yx |= y  is the same as  x = x | y  
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With