title: Put a 4 Byte Integer into the first 4 char elements of vector
body: <p>I have a <code>vector&lt;unsigned char&gt;</code> and want to put a 4 byte <code>Integer</code> into the first 4 elements.
  Is there a simpler way in C++ than masking like this:</p>
  
  <pre><code>myVector.at(0) = myInt &amp; 0x000000FF;
  myVector.at(1) = myInt &amp; 0x0000FF00;
  myVector.at(2) = myInt &amp; 0x00FF0000;
  myVector.at(3) = myInt &amp; 0xFF000000;
  </code></pre>