title: Simple way to set/unset an individual bit
body: <p>Right now I'm using this to set/unset individual bits in a byte:</p>
  
  <pre><code>if (bit4Set)
     nbyte |= (1 &lt;&lt; 4);
  else
     nbyte &amp;= ~(1 &lt;&lt; 4);
  </code></pre>
  
  <p>But, can't you do that in a more simple/elegant way? Like setting or unsetting the bit in a single operation?</p>
  
  <p>Note: I understand I can just write a function to do that, I'm just wondering if I won't be reinventing the wheel.</p>