title: bitwise operations on vector<bool>
body: <p>what's the best way to perform bitwise operations on <code>vector&lt;bool&gt;</code>?</p>
  
  <p>as i understand, <code>vector&lt;bool&gt;</code> is a specialisation that uses one bit per boolean. I chose <code>vector&lt;bool&gt;</code> for memory saving reasons. I know that there are some problems with <code>vector&lt;bool&gt;</code> but for my needs it's apropriate.</p>
  
  <p>now - what's the most performant way of aplying bitwise operations to whole such vectors?</p>
  
  <p>if i do it in a for loop and readout each single bool and store it back, the way I understand it a lot more operations are performed inside in order to access the actual values.</p>
  
  <p>thanks!</p>