title: integer to boolean array made of bits, most efficient way in c++?
body: <p>I have an interesting little problem, and I know there are multiple ways to skin the cat but I was wondering what would the best/most efficient way be.</p>
  
  <p>Say for example I have an integer with the value 534 and an array that can store 16 booleans</p>
  
  <p>now, 534 to binary is 10000010110</p>
  
  <p>how would be the best way to get from 534 to</p>
  
  <pre><code>array[0] = 0
  array[1] = 1
  array[2] = 1
  array[3] = 0
  array[4] = 1
  ....
  array[15] = 0
  </code></pre>
  
  <p>thanks in advance!</p>