bitwise AND with if statement
<p>Can I use bitwise &amp; in C++ code like below. The method returns a boolean based on results of the bitwise operation.</p>

<pre><code>bool SetValue( myType a )
{
    if( a &amp; notMyType == notMyType )
    {
        return false;
    }

    if( a &amp; newMyType == newMyType )
    {
        SendNew(a);
        return true;
    }

    if( a &amp; oldMyType == oldMyType )
    {
        SendOld(a);
        return true;
    }
}
</code></pre>
